[issue6791] httplib read status memory usage

Antoine Pitrou report at bugs.python.org
Thu Dec 16 15:02:10 CET 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> It does. Doesn't it? Because I saw in your patch that you fall back on
> HTTP 1.0 behaviour when the server does not return a status line and
> in which case a Exception will be raise and this issue won't be
> observed.

I don't think you understood the issue here. Calling readline() without
a maximum length means the process memory potentially explodes, if the
server sends gigabytes of data without a single "\n".

----------

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


More information about the Python-bugs-list mailing list