Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #99990
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: urllib2.urlopen() crashes on Windows 2008 Server |
| Date | 2015-12-03 20:07 -0500 |
| Organization | IISS Elusive Unicorn |
| Message-ID | <mailman.189.1449191259.14615.python-list@python.org> (permalink) |
| References | <n3pqq9$6sm$1@news2.informatik.uni-stuttgart.de> |
On Thu, 3 Dec 2015 16:32:09 +0000 (UTC), Ulli Horlacher
<framstag@rus.uni-stuttgart.de> declaimed the following:
>I have a Python2 program which runs fine on Windows 7, but
>crashes on Windows 2008 Server R2 64 bit:
>
>downloading http://fex.belwue.de/download/7za.exe
>Traceback (most recent call last):
> File "<string>", line 1992, in <module>
> File "<string>", line 180, in main
> File "<string>", line 329, in get_ID
> File "<string>", line 1627, in check_7z
> File "C:\Software\Python\lib\urllib2.py", line 154, in urlopen
> File "C:\Software\Python\lib\urllib2.py", line 431, in open
> File "C:\Software\Python\lib\urllib2.py", line 449, in _open
> File "C:\Software\Python\lib\urllib2.py", line 409, in _call_chain
> File "C:\Software\Python\lib\urllib2.py", line 1227, in http_open
> File "C:\Software\Python\lib\urllib2.py", line 1200, in do_open
> File "C:\Software\Python\lib\httplib.py", line 1132, in getresponse
> File "C:\Software\Python\lib\httplib.py", line 485, in begin
> File "C:\Software\Python\lib\mimetools.py", line 25, in __init__
> File "C:\Software\Python\lib\rfc822.py", line 108, in __init__
> File "C:\Software\Python\lib\httplib.py", line 319, in readheaders
> File "C:\Software\Python\lib\socket.py", line 480, in readline
>error: [Errno 10054] Eine vorhandene Verbindung wurde vom Remotehost geschlossen
>
Per MSDN:
"""
WSAECONNRESET
10054
Connection reset by peer.
An existing connection was forcibly closed by the remote host. This
normally results if the peer application on the remote host is suddenly
stopped, the host is rebooted, the host or remote network interface is
disabled, or the remote host uses a hard close (see setsockopt for more
information on the SO_LINGER option on the remote socket). This error may
also result if a connection was broken due to keep-alive activity detecting
a failure while one or more operations are in progress. Operations that
were in progress fail with WSAENETRESET. Subsequent operations fail with
WSAECONNRESET.
"""
>The curious thing is: the download was successful, the file 7za.exe is
>there in the local directory!
But is it complete? If it is, perhaps you are getting hit by the "hard
close" condition?
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
urllib2.urlopen() crashes on Windows 2008 Server Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-03 16:32 +0000
Re: urllib2.urlopen() crashes on Windows 2008 Server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-12-03 20:07 -0500
Re: urllib2.urlopen() crashes on Windows 2008 Server Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-04 13:00 +0000
Re: urllib2.urlopen() crashes on Windows 2008 Server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-12-04 13:16 -0500
Re: urllib2.urlopen() crashes on Windows 2008 Server Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-06 09:38 +0000
csiph-web