This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bram_cohen
Recipients
Date 2004-03-21.18:16:09
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Here's an error which someone just got running BitTorrent -

Exception in thread Thread-2:
 Traceback (most recent call last):
   File "/usr/lib/python2.3/threading.py", line 436, in
__bootstrap
     self.run()
   File "/usr/lib/python2.3/threading.py", line 416, in run
     self.__target(*self.__args, **self.__kwargs)
   File
"/usr/lib/python2.3/site-packages/BitTorrent/Rerequester.py",
line 72, in rerequest
     h = urlopen(url)
   File "/usr/lib/python2.3/urllib2.py", line 129, in
urlopen
     return _opener.open(url, data)
   File "/usr/lib/python2.3/urllib2.py", line 326, in open
     '_open', req)
   File "/usr/lib/python2.3/urllib2.py", line 306, in
_call_chain
     result = func(*args)
   File "/usr/lib/python2.3/urllib2.py", line 491, in
<lambda>
     lambda r, proxy=url, type=type,
meth=self.proxy_open: \
   File "/usr/lib/python2.3/urllib2.py", line 498, in
proxy_open
     if '@' in host:
 TypeError: iterable argument required

And here's one which people have been getting
*forever*, without it ever having been fixed (I've been
simply catching and ignoring it) -

Exception in thread Thread-60:
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 "/home/zkessin/bin/BitTorrent/Rerequester.py",
line 85, 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

Both of the above were caused by very straightforward
calls to httplib. I'm fairly certain (especially with
the second one) that they're internal bugs.

I'd like to mention while I'm at it that I'm extremely
unhappy with httplib. It's buggy, blocking, and doesn't
even support timeouts. While it's good to have a
library which supports all the vagaries of http, it
would be far better for it to be a simple object which
you tell when data  was received and it tells you when
there's data to be sent out. That way it could
integrate easily into other applications's event loops.
The blocking and buggy nature of httplib has caused me
no end of headaches, and I think I'm not the only one.
History
Date User Action Args
2007-08-23 14:20:32adminlinkissue920573 messages
2007-08-23 14:20:32admincreate