[ftputil] Timeouts / Connect on non-standard port (was: ftputil few simple questions)

Stefan Schwarzer sschwarzer at sschwarzer.net
Thu Dec 7 14:38:04 CET 2006


Hi Vedran,

I changed the topic to make it more useful for someone who
scans the mailing list archives.

On 2006-12-07 13:53, Vedran wrote:
> I am a new ftputil user,and I have a few questions about it.
> 
> 1.) How can I remove connection timeout.

Some general notes:

There's no easy way to prevent all connection timeouts. I
found ways to avoid timeouts for "main" connections (see
http://codespeak.net/pipermail/ftputil/2006q4/000163.html )
and for remote file-like objects opened for reading. You can
read more about that at
http://codespeak.net/pipermail/ftputil/2006q1/000073.html and
http://groups.google.de/group/comp.lang.python/browse_frm/thread/297d4e4a43c162c/2b8b1b5518e54b49?lnk=st&q=group%3Acomp.lang.python&rnum=1&hl=de#2b8b1b5518e54b49 .
Note that the call to ftphost_object.getcwd() won't be useful
in ftputil 2.2; use ftphost_object.chdir(ftphost_object.curdir)
instead.

In which specific cases do you encounter timeouts? Perhaps
there are better solutions which avoid the timeouts in the
first place.

> 2.) How can I change ftputil connection port.

That's answered in the documentation, see
http://ftputil.sschwarzer.net/trac/wiki/Documentation#connecting-on-another-port .

Stefan


More information about the ftputil mailing list