[issue13684] httplib tunnel infinite loop

luzakiru report at bugs.python.org
Fri Dec 30 16:56:27 CET 2011


New submission from luzakiru <viscount at inbox.com>:

readline() can return ''. This is handled in most places in httplib but not when a tunnel is used. It leads to a infinite loop that permanently blocks the program while wasting CPU cycles.

For the patch I simply copied the fix that is used elsewhere in the file where readline() is used. It can be fixed in the same way in 2.6.

----------
components: Library (Lib)
files: httplib.patch
keywords: patch
messages: 150383
nosy: luzakiru
priority: normal
severity: normal
status: open
title: httplib tunnel infinite loop
type: crash
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file24113/httplib.patch

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


More information about the Python-bugs-list mailing list