-
Notifications
You must be signed in to change notification settings - Fork 32
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
Double SSL_shutdown in neon 0.31.0 causes hang when closing a connection to login.live.com #11
Comments
|
Thanks for filing the issue, am away from laptop so apologies for slow response. I'm guessing this is the server not doing TLS shutdown properly. Any chance you can supply debug traces? (ne_debug_init w/NE_DBG_SSL|NE_DBG_HTTP at minimum) |
|
It does not look like the TLS shutdown it logged. Anyway, here is a timestamped log. Note the 2 minutes between "Closing connection." and "Connection closed.". |
|
The simplest thing to do here is simply revert the commit. The ne_sock_close() API description actually documents the old behaviour accurately, and the HTTP request/session close ignore the return value anyway. |
Since the change b19bb81, neon now calls
SSL_shutdowntwice. Indeed, this seems to be the right thing to do. Unfortunately it causes a hang when closing a connection tologin.live.com. It's very well possible that it's a server-side issue. I'm posting it anyway, in case others face the problem, as this is a major server.A simple code to reproduce the problem:
dummy_verifycan be a dummy function like:The code hangs in
ne_session_destroy, in the second call toSSL_shutdown(it times out eventually).Built against OpenSSL 1.1.1e.
The text was updated successfully, but these errors were encountered: