python-2.4.3-1 problem with urllib2

Chris AtLee chris@atlee.ca
Thu Jun 15 19:05:00 GMT 2006


The attached python script works fine under python-2.4.1-1.  Under
python-2.4.3-1, I get this output:

Using urllib.urlopen
......................................................................................................................................................
Using urllib2.urlopen
.............................................................................................Traceback
(most recent call last):
  File "test-urllib.py", line 42, in ?
    doRequest2("http://localhost:8010")
  File "test-urllib.py", line 16, in doRequest2
    f = urllib2.urlopen(url)
  File "/usr/lib/python2.4/urllib2.py", line 130, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.4/urllib2.py", line 358, in open
    response = self._open(req, data)
  File "/usr/lib/python2.4/urllib2.py", line 376, in _open
    '_open', req)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 1021, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.4/urllib2.py", line 996, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error unable to select on socket>

This happens after a consistent number of requests on my machine.

Cheers,
Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-urllib.py
Type: text/x-python
Size: 1061 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060615/be9fc910/attachment.py>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list