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

@ -66,7 +66,11 @@ wxMSW:
2.8.3 2.8.3
----- -----
wxMac All:
- Shut down the sockets gracefully (Sergio Aguayo)
wxMac:
- Corrected top border size for wxStaticBox with empty label (nusi) - Corrected top border size for wxStaticBox with empty label (nusi)

View File

@ -222,7 +222,7 @@ void GSocket::Shutdown()
/* If socket has been created, shutdown it */ /* If socket has been created, shutdown it */
if (m_fd != INVALID_SOCKET) if (m_fd != INVALID_SOCKET)
{ {
shutdown(m_fd, 2); shutdown(m_fd, 1 /* SD_SEND */);
Close(); Close();
} }

View File

@ -587,7 +587,7 @@ void GSocket::Shutdown()
/* If socket has been created, shutdown it */ /* If socket has been created, shutdown it */
if (m_fd != INVALID_SOCKET) if (m_fd != INVALID_SOCKET)
{ {
shutdown(m_fd, 2); shutdown(m_fd, 1);
Close(); Close();
} }