You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.
void close() noexcept {
error_code ec;
std::unique_lock<std::mutex> lock(socket_close_mutex); // The following operations seems to be needed to run sequentially
socket->lowest_layer().shutdown(asio::ip::tcp::socket::shutdown_both, ec);
socket->lowest_layer().close(ec);
}
In this way, we directly close tcp socket, why we not close SSL socket first in HTTPS server?
Thank you.
The text was updated successfully, but these errors were encountered:
Last time I studied this I came to the conclusion that calling ssl::stream::shutdown was not needed. Though I might be wrong! By the way, ssl::stream does not have a close-member function.
Hi: @eidheim
In this way, we directly close tcp socket, why we not close SSL socket first in HTTPS server?
Thank you.
The text was updated successfully, but these errors were encountered: