[Python-Dev] httplib and bad response chunking
John J Lee
jjl at pobox.com
Sat Jul 29 00:59:37 CEST 2006
On Tue, 25 Jul 2006, Greg Ward wrote:
[...]
> Where I'm getting hung up is how far to test this stuff.
Stop when you run out of time ;-)
> I have
> discovered other hypothetical cases of bad chunking that cause httplib
> to go into an infinite loop or block forever on socket.readline().
> Should we worry about those cases as well, despite not having seen them
> happen in the wild? More annoying, I can reproduce the "block forever"
> case using a real socket, but not using the StringIO-based FakeSocket
> class in test_httplib.
They have been seen in the wild :-)
http://python.org/sf/1411097
The IP address referenced isn't under my control, I don't know if it still
provokes the error, but the problem is clear.
John
More information about the Python-Dev
mailing list