[issue26499] http.client.IncompleteRead from HTTPResponse read after part reading file

SilentGhost report at bugs.python.org
Wed Mar 9 03:30:19 EST 2016


SilentGhost added the comment:

Here is the updated patch. I only included the additional fix for read1 since readlines is not overwritten in the HTTPConnection. Not sure how to write test for it, does it need a much longer body (compared to the one in tests) to produce this behaviour?

The larger refactoring might be appropriate for 3.6, but I believe these smaller fixed could go into the next micro release.

----------
Added file: http://bugs.python.org/file42097/issue26499_2.diff

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


More information about the Python-bugs-list mailing list