[issue19009] Enhance HTTPResponse.readline() performance
Kristján Valur Jónsson
report at bugs.python.org
Sat Sep 21 18:43:48 CEST 2013
Kristján Valur Jónsson added the comment:
Ok, Here is a new patch.
We now inherit from BufferedIOBase. We must implement read(amt) ourselves, since the base class does not do it.
I was wrong about the final chunk, it is in fact 0\r\n. A final \r\n is then added to signal the end of the optional trailers.
Added a bunch of tests for chunked encoding, plus tests to verify http synchronization for keepalive connections.
----------
Added file: http://bugs.python.org/file31836/httpresponse.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19009>
_______________________________________
More information about the Python-bugs-list
mailing list