Properly handle connection reset on win32.

This commit is contained in:
Bartosz Taudul 2017-11-04 17:19:28 +01:00
parent a91d12a9e1
commit 3dc7d04ab4

View File

@ -170,7 +170,7 @@ bool Socket::Read( void* _buf, int len, const timeval* tv, bool(*exitCb)() )
#ifdef _WIN32
{
auto err = WSAGetLastError();
if( err == WSAECONNABORTED ) return false;
if( err == WSAECONNABORTED || err == WSAECONNRESET ) return false;
}
#endif
break;