Browse Source

fixed HTTP connection being reset on Windows

pull/151/head
ygrishin 10 years ago
parent
commit
803737011a
  1. 3
      HTTPServer.cpp

3
HTTPServer.cpp

@ -605,7 +605,8 @@ namespace util @@ -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…
Cancel
Save