mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-27 09:04:15 +00:00
fixed HTTP connection being reset on Windows
This commit is contained in:
parent
8ad9f2681c
commit
803737011a
@ -605,7 +605,8 @@ namespace util
|
||||
{
|
||||
if (ecode != boost::asio::error::operation_aborted)
|
||||
{
|
||||
m_Socket->close ();
|
||||
boost::system::error_code ignored_ec;
|
||||
m_Socket->shutdown(boost::asio::ip::tcp::socket::shutdown_both, ignored_ec);
|
||||
Terminate ();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user