mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
[webserver] use cancel instead shutdown for acceptor
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
6a177cdd1c
commit
6bf0fdd344
@ -1393,9 +1393,9 @@ namespace http {
|
|||||||
m_IsRunning = false;
|
m_IsRunning = false;
|
||||||
|
|
||||||
boost::system::error_code ec;
|
boost::system::error_code ec;
|
||||||
m_Acceptor.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ec);
|
m_Acceptor.cancel(ec);
|
||||||
if (ec)
|
if (ec)
|
||||||
LogPrint (eLogDebug, "HTTPServer: Couldn't shutdown acceptor: ", ec.message ());
|
LogPrint (eLogDebug, "HTTPServer: Error while cancelling operations on acceptor: ", ec.message ());
|
||||||
m_Acceptor.close();
|
m_Acceptor.close();
|
||||||
|
|
||||||
m_Service.stop ();
|
m_Service.stop ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user