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:
Vadim Zeitlin
2007-03-17 02:14:33 +00:00
parent 480f42ec8e
commit cd632a8617
3 changed files with 7 additions and 3 deletions

View File

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