-
Notifications
You must be signed in to change notification settings - Fork 1
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
Draft: Resolve "server has to remove ungracefully disconnected zombie clients" #112
Draft: Resolve "server has to remove ungracefully disconnected zombie clients" #112
Conversation
In GitLab by @vornkat-iis on May 8, 2023, 14:23 added 1 commit
|
In GitLab by @vornkat-iis on May 8, 2023, 14:23 requested review from @Michael-M-Baron |
In GitLab by @vornkat-iis on May 8, 2023, 14:24 I pushed first version that should for the moment solve your issue. @Michael-M-Baron can you verify? The numbers should be tuned to your application. |
In GitLab by @vornkat-iis on May 8, 2023, 14:44 added 1 commit
|
In GitLab by @vornkat-iis on May 8, 2023, 15:21 added 1 commit
|
In GitLab by @vornkat-iis on May 26, 2023, 17:08 added 3 commits |
In GitLab by @vornkat-iis on May 26, 2023, 17:32 added 1 commit
|
In GitLab by @vornkat-iis on May 26, 2023, 17:36 Functionality tests are still missing. I have a draft locally but am not fully sure how to do this. |
Added my draft here, maybe it helps one day to finish this issue. Tests pass right now because all relevant lines are commented out. Feel free to adapt |
…e-ungracefull-disconnected-zombie-clients
…e-ungracefull-disconnected-zombie-clients
Had a look at the current state of this branch and it does not seem to fix the problem. What I did in my application:
At this point, I can ping my server again but not connect with my client (wait for a couple of minutes and tried several times meanwhile). My Suggestion: |
…ew clients when maximum number of clients is reached
…ull-disconnected-zombie-clients' into 49-server-has-to-remove-ungracefull-disconnected-zombie-clients
…Server in a thread, setup first client and seocnd client with a maximum allowed number of clients of 1. The acutal test of the TCP-Keep alive functionality is still not performed, since the client 1 socket is closed gracefully (May be mocking is needed).
I figured out the problem:
I added some more debug prints and updated the unit tests to cover the TCP keep alive mechanism. Breaking down the client socket connection for testing however cannot by simply done in the tests (May be with mocking), so the actual mechanism is not tested yet in the unit tests (I added TODO marks and going to open a separate ticket for that). |
In GitLab by @vornkat-iis on May 8, 2023, 12:48
Closes #49