[New-bugs-announce] [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>

More information about the New-bugs-announce mailing list