Ross Lagerwall <rosslagerw...@gmail.com> added the comment:

Attached is a patch which fixes the issue.

Instead of allowing the readline method to lose data, it adds a check to 
SocketIO.readinto() to ensure that the socket does not have a timeout and 
throws an IOError if it does. Also does the same for SocketIO.write().

I think this is a better approach - just failing immediately when a readline on 
a nonblocking socket occurs instead of failing sometimes and losing data.

----------
keywords: +patch
nosy: +rosslagerwall
Added file: http://bugs.python.org/file20202/7322_v1.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7322>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to