Issue2022
Created on 2013-03-03.04:24:40 by straz, last changed 2014-05-10.05:26:34 by zyasoft.
msg7896 (view) |
Author: Steve Strassmann (straz) |
Date: 2013-03-03.04:24:40 |
|
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
|
msg7939 (view) |
Author: Santoso Wijaya (santa4nt) |
Date: 2013-03-18.18:53:24 |
|
I'm getting:
>>> fetch('http://developers.google.com')
'\x15\x03\x01\x00\x16\xfb\xb8\xa3\x85\xec\xa4\xbeS\xc7\xfa\x1d\x88\x9f\xeb\xab\xe7\xda\xb1\r\x99\x86\xea'
|
msg8362 (view) |
Author: Jim Baker (zyasoft) |
Date: 2014-05-10.05:26:34 |
|
Now works on 2.7 trunk
|
|
Date |
User |
Action |
Args |
2014-05-10 05:26:34 | zyasoft | set | status: open -> closed resolution: fixed messages:
+ msg8362 nosy:
+ zyasoft |
2013-03-18 18:53:24 | santa4nt | set | messages:
+ msg7939 |
2013-03-18 18:41:30 | santa4nt | set | nosy:
+ santa4nt |
2013-03-15 19:18:45 | fwierzbicki | set | nosy:
+ fwierzbicki |
2013-03-10 14:05:18 | amak | set | assignee: amak nosy:
+ amak |
2013-03-03 04:24:40 | straz | create | |
|