Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Dennis Lee Bieber Newsgroups: comp.lang.python Subject: Re: urllib2.urlopen() crashes on Windows 2008 Server Date: Thu, 03 Dec 2015 20:07:24 -0500 Organization: IISS Elusive Unicorn Lines: 58 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de fAhWv+z9wiZPxytQREpTbwIJLbgtV0FWLMmxAv+Zu/ag== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'broken': 0.03; '"""': 0.05; 'subject:Windows': 0.09; '1200,': 0.09; '__init__': 0.09; 'message-id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subsequent': 0.15; 'thu,': 0.15; '1992,': 0.16; '480,': 0.16; 'rebooted,': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'verbindung': 0.16; 'successful,': 0.18; 'url:home': 0.18; 'runs': 0.18; 'windows': 0.20; '2015': 0.20; '(see': 0.20; 'skip:" 30': 0.20; '"",': 0.22; 'progress.': 0.22; 'dec': 0.23; '(most': 0.24; 'url:download': 0.24; 'header:X -Complaints-To:1': 0.26; 'error': 0.27; '+0000': 0.27; 'host': 0.28; 'fine': 0.28; 'interface': 0.29; 'host.': 0.29; 'peer': 0.29; 'readline': 0.29; 'subject:skip:u 10': 0.29; 'reset': 0.29; 'connection': 0.30; 'normally': 0.30; 'operations': 0.31; 'option': 0.31; 'getting': 0.33; 'curious': 0.33; 'suddenly': 0.33; 'open': 0.33; 'file': 0.34; 'server': 0.34; 'fail': 0.35; 'remote': 0.35; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'progress': 0.38; 'application': 0.39; 'to:addr:python.org': 0.40; 'close': 0.61; 'per': 0.62; 'more': 0.63; 'information': 0.63; 'due': 0.65; 'results': 0.66; '(utc),': 0.84; 'detecting': 0.84; 'disabled,': 0.84; 'getresponse': 0.84; 'dennis': 0.91; 'subject:Server': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: adsl-108-79-219-161.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99990 On Thu, 3 Dec 2015 16:32:09 +0000 (UTC), Ulli Horlacher 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 "", line 1992, in > File "", line 180, in main > File "", line 329, in get_ID > File "", 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/