Bugs item #673797, was opened at 2003-01-23 19:58 Message generated for change (Comment added) made by pristine777 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=673797&group_id=5470
Category: Python Library Group: Python 2.3 Status: Closed Resolution: Fixed Priority: 5 Submitted By: Craig Allen (cba037) Assigned to: Nobody/Anonymous (nobody) Summary: setting socket timeout crashes SSL? Initial Comment: First: bravo for compiling SSL support in the 2.3 binaries! I can connect fine to a secure web server using HTTPS. However, when I set a socket default timeout, I get errors: import socket socket.setdefaulttimeout(30.0) import urllib f = urllib.urlopen('https://members.tufts-health.com/memindex.html') print f.read() =================== Traceback (most recent call last): File "testssl.py", line 9, in ? f = urllib.urlopen('https://members.tufts-health.com/memindex.html') File "/usr/lib/python2.3/urllib.py", line 76, in urlopen return opener.open(url) File "/usr/lib/python2.3/urllib.py", line 181, in open return getattr(self, name)(url) File "/usr/lib/python2.3/urllib.py", line 375, in open_https h.endheaders() File "/usr/lib/python2.3/httplib.py", line 695, in endheaders self._send_output() File "/usr/lib/python2.3/httplib.py", line 581, in _send_output self.send(msg) File "/usr/lib/python2.3/httplib.py", line 548, in send self.connect() File "/usr/lib/python2.3/httplib.py", line 945, in connect ssl = socket.ssl(realsock, self.key_file, self.cert_file) socket.sslerror: (2, 'The operation did not complete (read)') =================== This is on Linux; similar behaviour on Win2K. ---------------------------------------------------------------------- Comment By: pristine777 (pristine777) Date: 2005-02-27 11:32 Message: Logged In: YES user_id=1228732 This bug has resurfaced in Python 2.4. The exact same code as in the original bug report gives the same error. I also tried using urllib2 and it gives the same result. I have tried this only on Windows (both XP professional SP2, and Windows Server 2003). I am unable to re-open this bug report so should I just file a new one? Thanks! ---------------------------------------------------------------------- Comment By: Neal Norwitz (nnorwitz) Date: 2003-02-03 13:43 Message: Logged In: YES user_id=33168 The patch was checked in, so I'm closing this bug. Please re-open if there are any problems. ---------------------------------------------------------------------- Comment By: Geoff Talvola (gtalvola) Date: 2003-01-31 09:55 Message: Logged In: YES user_id=88162 This is fixed by patch 676472 so when that patch is checked in, this bug can be closed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=673797&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com