Problem in dealing with timeout and ftplib? (py2.3a2)

Steve Holden sholden at holdenweb.com
Thu Feb 27 10:54:10 EST 2003


----- Original Message -----
From: "Geoffrey Talvola" <gtalvola at nameconnector.com>
To: "'Steve Holden'" <sholden at holdenweb.com>; <python-list at python.org>
Sent: Thursday, February 27, 2003 9:55 AM
Subject: RE: Problem in dealing with timeout and ftplib? (py2.3a2)


> Steve Holden [mailto:sholden at holdenweb.com] wrote:
> > I think it's a bug in the socket module, so I've reported it
> > as SourceForge
> > bug 693580. There should be no need to ferkle around inside
> > these client
> > modules and mess with their sockets when there's a perfectly
> > good way of
> > setting a timeout without doing that. Or at least there
> > should be :-) - the
> > new module needs setdefaulttimeout().
>
> You might want to retract that bug report -- it's already there as of
2.3a1:
>
> Python 2.3a1 (#38, Dec 31 2002, 17:53:59) [MSC v.1200 32 bit (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import socket
> >>> socket.setdefaulttimeout(5.0)
> >>>
>
> Also, as of 2.3a2 timeouts will work properly in conjunction with SSL.
>

I should indeed. I should have reproduced it myself. Thanks.

regards
--
Steve Holden                                  http://www.holdenweb.com/
Python Web Programming                 http://pydish.holdenweb.com/pwp/
Register for PyCon now!            http://www.python.org/pycon/reg.html








More information about the Python-list mailing list