Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra code for operation "remove confirmed messages from list" (ClientConnection) #16

Open
DOGoCAT07 opened this issue Oct 9, 2020 · 0 comments

Comments

@DOGoCAT07
Copy link

DOGoCAT07 commented Oct 9, 2020

For operation "remove confirmed messages from list" used 2 cycles:
First cycle in class ClientConnection (upwards)

/* remove confirmed messages from list */

Second cycle in class ASDUQueue (downwards)

while (enqueuedASDUs[currentIndex].state == QueueEntryState.SENT_BUT_NOT_CONFIRMED)

if set Server.DebugOutput=true i see this lines in console (in your code without time)

08.10.2020 7:52:46.277 CS104 SLAVE: Remove from queue with index 0
08.10.2020 7:52:46.277 CS104 SLAVE: queue state: noASDUs: 5 oldest: 1 latest: 5
08.10.2020 7:52:46.290 CS104 SLAVE: Remove from queue with index 1
08.10.2020 7:52:46.291 CS104 SLAVE: queue state: noASDUs: 5 oldest: 2 latest: 6
08.10.2020 7:52:46.303 CS104 SLAVE: Remove from queue with index 2
08.10.2020 7:52:46.304 CS104 SLAVE: queue state: noASDUs: 4 oldest: 3 latest: 6
08.10.2020 7:52:46.305 CS104 SLAVE: Remove from queue with index 3
08.10.2020 7:52:46.305 CS104 SLAVE: queue state: noASDUs: 3 oldest: 4 latest: 6
08.10.2020 7:52:46.321 CS104 SLAVE: Remove from queue with index 4
08.10.2020 7:52:46.331 CS104 SLAVE: queue state: noASDUs: 2 oldest: 5 latest: 6

This means that First cycle (asduQueue.MarkASDUAsConfirmed) goes 5 times.

Maybe I'm wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant