shutdown sockets gracefully instead of doing it with TCP reset (patch 1682438)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -587,7 +587,7 @@ void GSocket::Shutdown()
|
||||
/* If socket has been created, shutdown it */
|
||||
if (m_fd != INVALID_SOCKET)
|
||||
{
|
||||
shutdown(m_fd, 2);
|
||||
shutdown(m_fd, 1);
|
||||
Close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user