[Python-bugs-list] [ python-Bugs-763026 ] AssertionError in httplib.py
SourceForge.net
noreply@sourceforge.net
Mon, 30 Jun 2003 07:59:45 -0700
Bugs item #763026, was opened at 2003-06-30 06:37
Message generated for change (Settings changed) made by jhylton
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=763026&group_id=5470
Category: Python Library
Group: Python 2.2.3
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Matthias Klose (doko)
>Assigned to: Jeremy Hylton (jhylton)
Summary: AssertionError in httplib.py
Initial Comment:
[forwarded from http://bugs.debian.org/192452]
When running bittorrent for a few hours, I start seeing
this assertion fire in
httplib.py from the Python 2.2 libraries:
Exception in thread Thread-20:
Traceback (most recent call last):
File "/usr/lib/python2.2/threading.py", line 414, in
__bootstrap
self.run()
File "/usr/lib/python2.2/threading.py", line 402, in run
apply(self.__target, self.__args, self.__kwargs)
File
"/usr/lib/python2.2/site-packages/BitTorrent/Rerequester.py",
line 76, in rerequest
r = h.read()
File "/usr/lib/python2.2/httplib.py", line 1140, in read
assert not self._line_consumed and self._line_left
AssertionError
can be reproduced with 2.3 as well.
I do see this assertition triggered in another context:
- make a request
- when the request returns, the result code is 200
- trying to read the data returned triggers the assertion
I found out the server sider crashes/is crashed, so
probably no data is returned. maybe httplib could be a
bit more robust or throw a correct exception.
----------------------------------------------------------------------
>Comment By: Jeremy Hylton (jhylton)
Date: 2003-06-30 14:59
Message:
Logged In: YES
user_id=31392
Duplicate of 666219, and fixed in Python 2.3b2.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=763026&group_id=5470