[Python-bugs-list] [ python-Bugs-673797 ] setting socket timeout crashes SSL?

SourceForge.net noreply@sourceforge.net
Fri, 31 Jan 2003 09:55:09 -0800


Bugs item #673797, was opened at 2003-01-23 22:58
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: Open
Resolution: None
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: Geoff Talvola (gtalvola)
Date: 2003-01-31 12: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