[Patches] [ python-Patches-714592 ] timeouts for FTP connect (and other supported ops)

SourceForge.net noreply@sourceforge.net
Thu, 03 Apr 2003 06:49:30 -0800


Patches item #714592, was opened at 2003-04-03 07:51
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=714592&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthew Russell (mattruss)
Assigned to: Nobody/Anonymous (nobody)
Summary: timeouts for FTP connect (and other supported ops)

Initial Comment:
This patch attempts to provide users with support for
enabling the timeout feature on the undlying socket.

new parameter added to the __init__ and connect().

i have tested this only briefly.

ftp = ftplib.FTP()
ftp.connect(host="ftp.python.org", timeout=2)
ftp.settimeout(0.01)
->  Error socket.error: (11, 'Resource temporarily
unavailable')
ftp.settimeout(1.2)
ftp.login("anonymous")





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

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-04-03 09:49

Message:
Logged In: YES 
user_id=33168

There's no uploaded file!  You have to check the
checkbox labeled "Check to Upload & Attach File"
when you upload a file. In addition, even if you
*did* check this checkbox, a bug in SourceForge
prevents attaching a file when *creating* an issue.

Please try again.

(This is a SourceForge annoyance that we can do
nothing about. :-( )

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

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