-
-
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
TLS short read when closing connection #263
Comments
just a note: the fail handler is only called during the opening handshake. Either the open handler or the fail handler will be called. Once the connection has been open (i.e. open handler has been called) the fail will never be called. The close handler should be called on every connection no matter how it closed. There are connection methods that you can use to query the reasons the connection was closed. The errors you posted seem to indicate that the TLS connection isn't being closed correctly by one of the endpoints. I'll see if I can dig more into what those specific error conditions are. |
any updates on this ? i also frequently get this error. |
Tls short read related changes references #263
I've done a bit more research into Asio's "short read" read error. Most cases of tls short read are expected and should be ignored. I've pushed an update that streamlines TLS related error handling. Some highlights:
|
Can you reference the diff or just the sources where you applied changes to resolve this problem? Unfortunately the interwebs seems lacking on results for this issue, in fact your thread here comes up #1 result if I use "boost" along with the ec. |
WebSocket++ reports an error when it acts as a client and connects to a AspNetWebSocket with TLS.
This is the sequence:
The last two messages only occurred when I sat at a breakpoint for a long time (a couple minutes?) immediately before CloseAsync was called.
Despite the messages, everything seems to work correctly and the fail handler does not get called.
The text was updated successfully, but these errors were encountered: