Merge branch 'bigbreak' of https://github.com/Araq/Nimrod into bigbreak

This commit is contained in:
Araq 2014-09-10 22:56:26 +02:00
commit 758d8e11d9
17 changed files with 153 additions and 97 deletions

View file

@ -247,6 +247,7 @@ proc asyncSockHandleWrite(h: RootRef) =
# Apparently the socket cannot be written to. Even though select
# just told us that it can be... This used to be an assert. Just
# do nothing instead.
discard
elif bytesSent != sock.sendBuffer.len:
sock.sendBuffer = sock.sendBuffer[bytesSent .. -1]
elif bytesSent == sock.sendBuffer.len: