Issue673797
Created on 2003-01-24 03:58 by cba037, last changed 2005-02-27 19:32 by pristine777.
| Messages (4) | |||
|---|---|---|---|
| msg14195 - (view) | Author: Craig Allen (cba037) | Date: 2003-01-24 03:58 | |
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.
|
|||
| msg14196 - (view) | Author: Geoff Talvola (gtalvola) | Date: 2003-01-31 17:55 | |
Logged In: YES user_id=88162 This is fixed by patch 676472 so when that patch is checked in, this bug can be closed. |
|||
| msg14197 - (view) | Author: Neal Norwitz (nnorwitz) | Date: 2003-02-03 21:43 | |
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. |
|||
| msg14198 - (view) | Author: pristine777 (pristine777) | Date: 2005-02-27 19:32 | |
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! |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2003-01-24 03:58:44 | cba037 | create | |