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

Geoffrey Talvola gtalvola at nameconnector.com
Thu Feb 27 09:55:41 EST 2003


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.

- Geoff





More information about the Python-list mailing list