Skip to content

Commit

Permalink
#41 - must be EWOULDBLOCK instead of EAGAIN to make windows happy
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed Feb 12, 2013
1 parent c448c1a commit 43b35ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion puka/connection.py
Expand Up @@ -194,7 +194,7 @@ def on_write(self):
# On windows socket.send blows up if the buffer is too large.
r = self.sd.send(self.send_buf.read(128*1024))
except socket.error, e:
if e.errno in (errno.EAGAIN, errno.ENOBUFS):
if e.errno in (errno.EWOULDBLOCK, errno.ENOBUFS):
return
else:
raise
Expand Down

0 comments on commit 43b35ec

Please sign in to comment.