wip
This commit is contained in:
parent
ebcbede00c
commit
b2d967af77
@ -186,6 +186,7 @@ void Connection::handle_timeout(boost::system::error_code ec)
|
|||||||
if (ec != boost::asio::error::operation_aborted)
|
if (ec != boost::asio::error::operation_aborted)
|
||||||
{
|
{
|
||||||
boost::system::error_code ignore_error;
|
boost::system::error_code ignore_error;
|
||||||
|
// NOLINTNEXTLINE(bugprone-unused-return-value)
|
||||||
TCP_socket.cancel(ignore_error);
|
TCP_socket.cancel(ignore_error);
|
||||||
handle_shutdown();
|
handle_shutdown();
|
||||||
}
|
}
|
||||||
@ -197,6 +198,7 @@ void Connection::handle_shutdown()
|
|||||||
timer.cancel();
|
timer.cancel();
|
||||||
// Initiate graceful connection closure.
|
// Initiate graceful connection closure.
|
||||||
boost::system::error_code ignore_error;
|
boost::system::error_code ignore_error;
|
||||||
|
// NOLINTNEXTLINE(bugprone-unused-return-value)
|
||||||
TCP_socket.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ignore_error);
|
TCP_socket.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ignore_error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user