A problem while using urllib

John J. Lee jjl at pobox.com
Fri Oct 14 01:16:01 CEST 2005


Steve Holden <steve at holdenweb.com> writes:
[...]
>    File "/usr/lib/python2.4/urllib2.py", line 996, in do_open
>      raise URLError(err)
> urllib2.URLError: <urlopen error (120, 'Operation already in progress')>
> 
> Looking at that part of the course of urrllib2 we see:
> 
>          headers["Connection"] = "close"
>          try:
>              h.request(req.get_method(), req.get_selector(), req.data, 
> headers)
>              r = h.getresponse()
>          except socket.error, err: # XXX what error?
>              raise URLError(err)
> 
> So my conclusion is that there's something in the Cygwin socket module 
> that causes problems not seen under other platforms.
> 
> I couldn't find any obviously-related error in the Python bug tracker, 
> and I have copied this message to the Cygwin list in case someone there 
> knows what the problem is.
[...]

I don't *think* this is related, but just in case:

http://python.org/sf/1208304


John




More information about the Python-list mailing list