shutdown sockets gracefully instead of doing it with TCP reset (patch 1682438) [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -91,6 +91,10 @@ Major new features in 2.8 release
|
||||
2.8.3
|
||||
-----
|
||||
|
||||
All:
|
||||
|
||||
- Shut down the sockets gracefully (Sergio Aguayo)
|
||||
|
||||
wxMac
|
||||
|
||||
- Corrected top border size for wxStaticBox with empty label (nusi).
|
||||
|
@@ -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();
|
||||
}
|
||||
|
||||
|
@@ -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