Merge pull request #151 from ygrishin/master

fixed HTTP connection being reset on Windows
This commit is contained in:
orignal 2015-02-02 21:58:53 -05:00
commit 7f75d250c7

View File

@ -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 ();
}
}