[issue19009] Enhance HTTPResponse.readline() performance

Antoine Pitrou report at bugs.python.org
Fri Sep 20 22:21:01 CEST 2013


Antoine Pitrou added the comment:

> Note for the different interpretation of the final chunk:
> Chunked encoding allows for adding headers after the final chunk.
> This is what _read_and_discard_trailer() does, but discarding the
> trailing headers.  So, if support is ever added for reading those
> trailing headers, then we need make sure that we consume the last
> chunk correctly.

I think what Serhiy is proposing is that we also succeed when the
server sends a truncated last chunk (and I agree with him).

----------

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


More information about the Python-bugs-list mailing list