[issue1966] infinite loop in httplib

Mike Klaas report at bugs.python.org
Tue Jan 29 20:14:09 CET 2008


New submission from Mike Klaas:

There are a small number of sites that do not send the trailing \r\n when 
using chunked transfer encoding (say 1 in 500,000).  This unfortunately, 
causes httplib to go into an infinite loop.

Fixed by checking for EOF (3 line patch)

----------
components: Library (Lib)
files: httplib_chunked.patch
messages: 61824
nosy: klaas
severity: major
status: open
title: infinite loop in httplib
type: behavior
versions: Python 2.3, Python 2.4, Python 2.5, Python 2.6, Python 3.0
Added file: http://bugs.python.org/file9318/httplib_chunked.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1966>
__________________________________


More information about the Python-bugs-list mailing list