[ python-Bugs-1493922 ] Setting a socket timeout breaks SSL

SourceForge.net noreply at sourceforge.net
Wed May 24 11:22:44 CEST 2006


Bugs item #1493922, was opened at 2006-05-24 00:56
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1493922&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.3
Status: Closed
Resolution: Wont Fix
Priority: 5
Submitted By: Andrew Pollock (apollock)
Assigned to: Nobody/Anonymous (nobody)
Summary: Setting a socket timeout breaks SSL

Initial Comment:
Hi,

Bug #1153016 implies that this problem was fixed in 2.3
and is a regression in 2.4, however in 

2.3.5 (#2, Aug 30 2005, 15:50:26)
[GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)]

I'm able to do this:

import smtplib
s = smtplib.SMTP("localhost")
s.sock.settimeout(5)
s.starttls()
s.helo("localhost")

and get:

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/smtplib.py", line 379, in helo
    (code,msg)=self.getreply()
  File "/usr/lib/python2.3/smtplib.py", line 344, in
getreply
    line = self.file.readline()
  File "/usr/lib/python2.3/smtplib.py", line 159, in
readline
    chr = self.sslobj.read(1)
socket.sslerror: The read operation timed out

I expect this won't be limited to just smtplib.

I'm new to Python, and to the Python project, so I'm
still trying to grapple with SF's bug tracking system
and source code repository, so I haven't been able to
do a thorough analysis of the problem because I can't
find my way around terribly well. Is Python 2.3 still
even maintained?

----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2006-05-24 09:22

Message:
Logged In: YES 
user_id=849994

Also, this is fixed in 2.5, see bug 1380952.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2006-05-24 06:51

Message:
Logged In: YES 
user_id=21627

Python 2.3 is not maintained anymore, so closing this as
"won't fix".

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1493922&group_id=5470


More information about the Python-bugs-list mailing list