More future debug info. Added new error code to SafeDisconn list.

This commit is contained in:
Dominik Picheta 2014-08-09 20:50:06 +01:00
commit 7358fc256f
4 changed files with 24 additions and 6 deletions

View file

@ -361,7 +361,7 @@ proc isDisconnectionError*(flags: set[TSocketFlags],
when useWinVersion:
TSocketFlags.SafeDisconn in flags and
lastError.int32 in {WSAECONNRESET, WSAECONNABORTED, WSAENETRESET,
WSAEDISCON}
WSAEDISCON, ERROR_NETNAME_DELETED}
else:
TSocketFlags.SafeDisconn in flags and
lastError.int32 in {ECONNRESET, EPIPE, ENETRESET}