We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ssl::stream::shutdown
ssl::stream::async_shutdown
eof
SSL/TLS shutdown operations map the eof error from the underlying protocol layer to a stream_truncated error: https://github.com/chriskohlhoff/asio/blob/master/asio/include/asio/ssl/detail/impl/engine.ipp#L231
stream_truncated
When the shutdown procedure completes successfully, eof errors are cleared before calling the completion handler: https://github.com/chriskohlhoff/asio/blob/master/asio/include/asio/ssl/detail/shutdown_op.hpp#L49
So, there is no need to check and ignore the eof error in shutdown operations:
stream.shutdown(ec); if (ec == net::error::eof) // Unnecessary ec = {};
The text was updated successfully, but these errors were encountered:
No branches or pull requests
SSL/TLS shutdown operations map the
eof
error from the underlying protocol layer to astream_truncated
error:https://github.com/chriskohlhoff/asio/blob/master/asio/include/asio/ssl/detail/impl/engine.ipp#L231
When the shutdown procedure completes successfully,
eof
errors are cleared before calling the completion handler:https://github.com/chriskohlhoff/asio/blob/master/asio/include/asio/ssl/detail/shutdown_op.hpp#L49
So, there is no need to check and ignore the
eof
error in shutdown operations:The text was updated successfully, but these errors were encountered: