mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 22:15:52 +00:00
Improve SSLHTTPPeer asynchronous shutdown
This commit is contained in:
committed by
Nik Bougalis
parent
d98c4992dd
commit
d289512aeb
@@ -179,6 +179,16 @@ SSLHTTPPeer<Handler>::
|
||||
on_shutdown(error_code ec)
|
||||
{
|
||||
this->cancel_timer();
|
||||
|
||||
if (ec == boost::asio::error::operation_aborted)
|
||||
return;
|
||||
if (ec)
|
||||
{
|
||||
JLOG(this->journal_.debug()) <<
|
||||
"on_shutdown: " << ec.message();
|
||||
}
|
||||
|
||||
// Close socket now in case this->destructor is delayed
|
||||
stream_.lowest_layer().close(ec);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user