-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Client invalid state exception when connection times out #389
Comments
I can also get this to happen on the server side. Probably also related to load - eg too many clients and not being able to keep up. Nginx is forwarding between the client/server and terminating ssl from client. Maybe the client has stopped (crashed) but the link has not gone down immediately? If you need any additional information let me know.
|
Thank you, that gdb trace is super helpful. This issue will have a patch later tonight. |
…erences #389 #361 This overhaul removes the use of exceptions in handling state errors during handshake processing. All such errors are demoted to rerror/recoverable error and will terminate the connection only rather than the whole application. In addition, there are some cases where we expect to see a state error due to non-deterministic interleaving of timeout handlers and read/write handlers. In these expected cases state errors are ignored entirely.
I've pushed an overhaul of the internal state machine that removes the use of exceptions in handling state errors during handshake processing. All such errors are demoted to rerror/recoverable error and will terminate the connection via standard (non-exception based) methods rather than the whole application. In addition, there are some cases where we expect to see a state error due to non-deterministic interleaving of timeout handlers and read/write handlers. In these expected cases state errors are ignored entirely. I was able to capture the issue demonstrated by the above stack trace in both servers and clients in a unit test and the new code passes all common inter-leavings that I've seen. If those who've seen this issue can try testing with the latest commit on the develop branch and let me know it resolves the above issue that would be very helpful. |
I believe that the fix for this issue is now present in the 0.5.0 release on the master branch. If anyone has additional similar issues please reopen. |
Issue posted to the mailing list by Geoff:
This might be related to #361
Client connection behavior during timeouts / high load needs some additional testing.
The text was updated successfully, but these errors were encountered: