[issue7322] Socket timeout can cause file-like readline() method to lose data
Antoine Pitrou
report at bugs.python.org
Thu Jan 13 15:28:01 CET 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
By the way, I recently fixed the makefile() documentation:
“The socket must be in blocking mode; it can have a timeout, but the file object’s internal buffer may end up in a inconsistent state if a timeout occurs.”
(in http://docs.python.org/dev/library/socket.html#socket.socket.makefile)
I also added a small section dedicated to socket timeouts:
http://docs.python.org/dev/library/socket.html#notes-on-socket-timeouts
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7322>
_______________________________________
More information about the Python-bugs-list
mailing list