Message7896

Author straz
Recipients straz
Date 2013-03-03.04:24:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362284681.05.0.60981584383.issue2022@psf.upfronthosting.co.za>
In-reply-to
Content
Reproducible failure to read urllib2 sockets with some URLs but not others.
Failure occurs in jython 2.7b1. (Jython 2.5.2 reads URLs ok)
Tried on Mac OS 10.8.2

To reproduce:

import urllib2

def fetch (url):
    r = urllib2.Request(url)
    f = urllib2.urlopen(r)
    return f.read()

>>> fetch('http://www.google.com')
 (works fine)
>>> fetch('http://developers.google.com')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 4, in fetch
  File "/opt/jython2.7b1/Lib/socket.py", line 1672, in read
    data = self._sock.recv(recv_size)
  File "/opt/jython2.7b1/Lib/httplib.py", line 561, in read
    s = self.fp.read(amt)
  File "/opt/jython2.7b1/Lib/httplib.py", line 1298, in read
    return s + self._file.read(amt - len(s))
  File "/opt/jython2.7b1/Lib/socket.py", line 1690, in read
    data = self._sock.recv(recv_size)
  File "/opt/jython2.7b1/Lib/socket.py", line 180, in set_last_error
    return method(obj, *args, **kwargs)
  File "/opt/jython2.7b1/Lib/socket.py", line 171, in map_exception
    raise _map_exception(jlx)
socket.error: [Errno 54] Software caused connection abort
History
Date User Action Args
2013-03-03 04:24:41strazsetrecipients: + straz
2013-03-03 04:24:41strazsetmessageid: <1362284681.05.0.60981584383.issue2022@psf.upfronthosting.co.za>
2013-03-03 04:24:40strazlinkissue2022 messages
2013-03-03 04:24:40strazcreate