[issue7322] Socket timeout can cause file-like readline() method to lose data

Ned Deily report at bugs.python.org
Sun Nov 21 03:05:03 CET 2010


Ned Deily <nad at acm.org> added the comment:

This would seem to be an invalid test case.  It is specifically documented that socket.makefile does not support this: "The socket must be in blocking mode (it can not have a timeout)".

http://docs.python.org/py3k/library/socket.html#socket.socket.makefile

I suppose socket.makefile could initially check the socket and throw an exception if the socket is non_blocking but the program could later change the socket to non_blocking and the same issue would presumably arise.  

Recommend closing as invalid.

----------
nosy: +ned.deily

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7322>
_______________________________________


More information about the Python-bugs-list mailing list