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:
parent
480f42ec8e
commit
cd632a8617
@ -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)
|
||||||
|
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user