From cd632a8617120efe913bb49c2c77495d4361d6ce Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 17 Mar 2007 02:14:33 +0000 Subject: [PATCH] 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 --- docs/changes.txt | 6 +++++- src/msw/gsocket.cpp | 2 +- src/unix/gsocket.cpp | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index 5546f5cc0e..9cf03f058d 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -66,7 +66,11 @@ wxMSW: 2.8.3 ----- -wxMac +All: + +- Shut down the sockets gracefully (Sergio Aguayo) + +wxMac: - Corrected top border size for wxStaticBox with empty label (nusi) diff --git a/src/msw/gsocket.cpp b/src/msw/gsocket.cpp index c107146e2c..2edc3ab247 100644 --- a/src/msw/gsocket.cpp +++ b/src/msw/gsocket.cpp @@ -222,7 +222,7 @@ void GSocket::Shutdown() /* If socket has been created, shutdown it */ if (m_fd != INVALID_SOCKET) { - shutdown(m_fd, 2); + shutdown(m_fd, 1 /* SD_SEND */); Close(); } diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 6e0292a78b..eeee3fa8cc 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -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(); } -- 2.47.2