[issue3826] Self-reference in BaseHTTPRequestHandler descendants causes stuck connections

romkyns report at bugs.python.org
Wed Sep 10 20:12:00 CEST 2008


romkyns <ws.python at starkov.name> added the comment:

My initial description doesn't state the actual observable problem very
clearly: the problem is that the browser gets stuck instead of
displaying the page, writing something along the lines of "Transferring
data from localhost". After many seconds it times out. Aborting the
request in Firefox causes the page to be displayed.

Also forgot to mention that it's possible to work around this by
explicitly removing all circular references after the base class'
__init__ method - so for the attached example a work-around is
"self.dummy = None" as the last line of the __init__ method.

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


More information about the Python-bugs-list mailing list