[issue2645] httplib throws ValueError

2008-04-20 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I decided not to do that since it changes the exception raised, which I guess the release managers won't view as a bugfix. __ Tracker <[EMAIL PROTECTED]> ___

[issue2645] httplib throws ValueError

2008-04-19 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: could you backport that to release25-maint if it isn't there already? __ Tracker <[EMAIL PROTECTED]> __ _

[issue2645] httplib throws ValueError

2008-04-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: The trunk version does already handle this: it closes the connection and raises IncompleteRead. -- resolution: -> out of date status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue2645] httplib throws ValueError

2008-04-18 Thread Niall O'Higgins
Niall O'Higgins <[EMAIL PROTECTED]> added the comment: Unfortunately I do not get this consistently from any URL. My code is periodically polling a single HTTP server over the Internet. Quite possibly it is triggered by some random network/remote server condition. I have not had the chance to

[issue2645] httplib throws ValueError

2008-04-18 Thread Georg Brandl
Changes by Georg Brandl <[EMAIL PROTECTED]>: -- assignee: -> georg.brandl nosy: +georg.brandl __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs

[issue2645] httplib throws ValueError

2008-04-16 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: thanks for the patch. can you check the HTTP/1.1 RFC and see what it says (if anything) about handling this case? also, do you happen to get this consistently from any particular urls or servers or is this pretty random just happening und

[issue2645] httplib throws ValueError

2008-04-16 Thread Niall O'Higgins
New submission from Niall O'Higgins <[EMAIL PROTECTED]>: I do a lot of urllib2 reads of HTTP URLs. From time to time, I see the following exception being thrown: File "/usr/local/lib/python2.5/socket.py", line 291, in read data = self._sock.recv(recv_size) File "/usr/local/lib/python2.5