new actors implementation for nimrod; compiler's generics still not up for the task though

This commit is contained in:
Araq 2011-08-29 01:14:26 +02:00
commit 4839800c22
8 changed files with 98 additions and 181 deletions

View file

@ -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