Fix Windows accept() to fail future instead of raising

Resolves: #5279
This commit is contained in:
Ruslan Mustakov 2017-01-30 13:18:32 +07:00
commit fb8168d338
6 changed files with 107 additions and 44 deletions

View file

@ -419,9 +419,6 @@ const
ws2dll = "Ws2_32.dll"
WSAEWOULDBLOCK* = 10035
WSAEINPROGRESS* = 10036
proc wsaGetLastError*(): cint {.importc: "WSAGetLastError", dynlib: ws2dll.}
type
@ -760,6 +757,11 @@ const
WSAEDISCON* = 10101
WSAENETRESET* = 10052
WSAETIMEDOUT* = 10060
WSANOTINITIALISED* = 10093
WSAENOTSOCK* = 10038
WSAEINPROGRESS* = 10036
WSAEINTR* = 10004
WSAEWOULDBLOCK* = 10035
ERROR_NETNAME_DELETED* = 64
STATUS_PENDING* = 0x103