-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Closing TCP connection after SSL_ERROR_SYSCALL #7
Comments
After a lot of tests of #8 PR I found a reproduce steps (do it on same machine):
ps. sometimes you need to connect once to server via mumble-client before open-close loop I think it is another bug besides EAGAIN handle |
Also |
Thank you very much for the detailed report! I would expect OpenSSL to handle If your pull request effectively fixes the issue, I'm going to merge it right away. |
pr #8 just reduces reproducibility but not completely solve the problem |
OK |
I've test library with mumble-server based on mumblevoip/mumble-server:v1.4.287
After I have connected (and sent Ping messages to server) I got an SSL_ERROR_SYSCALL in TLS.cpp and then got Shutdown and closed TCP.
You need to be connected a lot of time (from 10 minutes to 10 hours) to reproduce
https://github.com/mumble-voip/libmumble/blob/master/src/TLS.cpp#L184-L190
top of stacktrace:
I check
ERR_get_error()
is0
anderrno
is11
inside SSL_ERROR_SYSCALL caseAfter my little patch a have no random disconnect anymore
But I'm not sure this is enough and this is idiomatic code for handling ssl problems
Related links from so:
https://stackoverflow.com/questions/13686398/ssl-read-failing-with-ssl-error-syscall-error
https://stackoverflow.com/questions/13554691/errno-11-resource-temporarily-unavailable
The text was updated successfully, but these errors were encountered: