[New-bugs-announce] [issue4814] ftplib does not honour "timeout" parameter for active data connections

Giampaolo Rodola' report at bugs.python.org
Sat Jan 3 01:52:14 CET 2009


New submission from Giampaolo Rodola' <billiejoex at users.sourceforge.net>:

When using the optional ftplib.FTP()'s timeout parameter which 
specifies a timeout in seconds for blocking operations like the 
connection attempt, it is applied on both FTP control and passive data 
channel (if any).
It is not applied for active (PORT/EPRT) data connections.
The patch in attachment modifies ftplib so that when ntransfer method 
is called in active mode, timeout is applied on the resulting data 
connection.

----------
files: ftplib.patch
keywords: patch
messages: 78912
nosy: giampaolo.rodola
severity: normal
status: open
title: ftplib does not honour "timeout" parameter for active data connections
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file12552/ftplib.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4814>
_______________________________________


More information about the New-bugs-announce mailing list