[issue16298] httplib.HTTPResponse.read could potentially leave the socket opened forever

Antoine Pitrou report at bugs.python.org
Sat Dec 15 18:13:50 CET 2012


Antoine Pitrou added the comment:

Sorry for the delay. I am not sure I understand your concern here:

> If the user reads the exact amount of bytes the server sent, read() on > the socket will never have a chance to return '' and inform the user
> about the connection termination.

Certainly read(), called once again, would return ''? That's how I understand your unit test anyway.

----------

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


More information about the Python-bugs-list mailing list