new actors implementation for nimrod; compiler's generics still not up for the task though
This commit is contained in:
parent
5112677904
commit
4839800c22
8 changed files with 98 additions and 181 deletions
|
|
@ -406,9 +406,11 @@ proc connectAsync*(socket: TSocket, name: string, port = TPort(0),
|
|||
var err = WSAGetLastError()
|
||||
# Windows EINTR doesn't behave same as POSIX.
|
||||
if err == WSAEWOULDBLOCK:
|
||||
freeaddrinfo(aiList)
|
||||
return
|
||||
else:
|
||||
if errno == EINTR or errno == EINPROGRESS:
|
||||
freeaddrinfo(aiList)
|
||||
return
|
||||
|
||||
it = it.ai_next
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue