New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setting socket timeout crashes SSL? #37826
Comments
First: bravo for compiling SSL support in the 2.3 binaries! I can connect fine to a secure web server using HTTPS. 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)') =================== |
Logged In: YES This is fixed by patch 676472 so when that patch is checked |
Logged In: YES The patch was checked in, so I'm closing this bug. Please |
Logged In: YES This bug has resurfaced in Python 2.4. The exact same code as in the original bug report gives the I have tried this only on Windows (both XP professional SP2, I am unable to re-open this bug report so should I just file a |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: