Skip to content
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

TCP socket doesn't get closed on close_handshake_timeout when TLS is used #805

Open
mstaz opened this issue Apr 6, 2019 · 0 comments
Open

Comments

@mstaz
Copy link

mstaz commented Apr 6, 2019

Hello,
I'm still using WebSocket++ 0.7.0 with wolfSSL instead of OpenSSL. For TLS client connections I noticed that the TCP socket doesn't get closed when the close handshake fails. Means the server doesn't close the underlying TCP connection which causes the handle_close_handshake_timeout to be executed. However only SSL_shutdown is called what causes a TLS close notify message, but the TCP connection stays alive.
Is it expected that SSL_shutdown closes the underyling connection?

I could solve this by registering a termination handler and there calling:
connection->get_raw_socket().cancel();
Is this okay or will it break something?

Thanks,
Max

cleancoderob added a commit to SolinkCorp/socket.io-client-cpp that referenced this issue Apr 3, 2023
Very similar problem as described, here, but no work-arounds would fix the issue.
socketio#254

Similar fix described here:
zaphoyd/websocketpp#805
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant