[issue7322] Socket timeout can cause file-like readline() method to lose data
Ross Lagerwall
report at bugs.python.org
Thu Jan 13 10:28:15 CET 2011
Ross Lagerwall <rosslagerwall at gmail.com> added the comment:
How about this?
Instead of just losing the data that's been read so far in readline(), this patch adds the data as a new field to the exception that is thrown - this way the semantics remain exactly the same but the data is not discarded when a timeout occurs, it is still accessible via the exception.
----------
Added file: http://bugs.python.org/file20386/issue7322_new.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7322>
_______________________________________
More information about the Python-bugs-list
mailing list