From sschwarzer at sschwarzer.net Sun Jul 22 17:31:51 2007 From: sschwarzer at sschwarzer.net (Stefan Schwarzer) Date: Sun, 22 Jul 2007 17:31:51 +0200 Subject: [ftputil] [ANN] ftputil 2.2.3 released Message-ID: <46A37867.7070000@sschwarzer.net> ftputil 2.2.3 is now available from http://ftputil.sschwarzer.net/download . Changes since version 2.2.2 --------------------------- This release fixes a bug in the ``makedirs`` call (report and fix by Julian, whose last name I don't know ;-) ). Upgrading is recommended. What is ftputil? ---------------- ftputil is a high-level FTP client library for the Python programming language. ftputil implements a virtual file system for accessing FTP servers, that is, it can generate file-like objects for remote files. The library supports many functions similar to those in the os, os.path and shutil modules. ftputil has convenience functions for conditional uploads and downloads, and handles FTP clients and servers in different timezones. Read the documentation at http://ftputil.sschwarzer.net/documentation . License ------- ftputil is Open Source software, released under the revised BSD license (see http://www.opensource.org/licenses/bsd-license.php ). Stefan From ian at gfi.com Thu Sep 27 10:15:01 2007 From: ian at gfi.com (Ian Bugeja) Date: Thu, 27 Sep 2007 10:15:01 +0200 Subject: [ftputil] ftputil timeout Message-ID: <42B56C6A683EBA4581C01CB49A914CA70CC2FAB5@MAILFAXSRV.gfimalta.com> Hi anbody can help me with this issue please basically i'm uploading some files using ftputil and whenever the upload time takes longer than 10minutes i get the following exception: 421 Connection timed out - closing. Debugging info: ftputil 2.2.1, Python 2.5 (win32) any ideas how i can increase this timeout or do something else please? thanks in advance Ian Bugeja DISCLAIMER The information contained in this electronic mail may be confidential or legally privileged. It is for the intended recipient(s) only. Should you receive this message in error, please notify the sender by replying to this mail. Unless expressly stated, opinions in this message are those of the individual sender and not of GFI. Unauthorized use of the contents is strictly prohibited. While all care has been taken, GFI is not responsible for the integrity of the contents of this electronic mail and any attachments included within. This mail was checked for viruses by GFI MailSecurity. GFI also develops anti-spam software (GFI MailEssentials), a fax server (GFI FAXmaker), and network security and management software (GFI LANguard) - www.gfi.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://codespeak.net/pipermail/ftputil/attachments/20070927/ea26c3c1/attachment.htm From sschwarzer at sschwarzer.net Sat Sep 29 22:27:35 2007 From: sschwarzer at sschwarzer.net (Stefan Schwarzer) Date: Sat, 29 Sep 2007 22:27:35 +0200 Subject: [ftputil] ftputil timeout In-Reply-To: <42B56C6A683EBA4581C01CB49A914CA70CC2FAB5@MAILFAXSRV.gfimalta.com> References: <42B56C6A683EBA4581C01CB49A914CA70CC2FAB5@MAILFAXSRV.gfimalta.com> Message-ID: <46FEB537.4020109@sschwarzer.net> Hi Ian, Sorry for the late answer. On 2007-09-27 10:15, Ian Bugeja wrote: > basically i'm uploading some files using ftputil and whenever the upload > time takes longer than 10minutes i get the following exception: > > 421 Connection timed out - closing. Debugging info: ftputil 2.2.1, > Python 2.5 (win32) > > any ideas how i can increase this timeout or do something else please? The timeout is set in the FTP server configuration. You can't do anything about the timeout on the client side. In the past, I thought a lot about gracefully recovering from timeouts but only got to awkward "solutions". That said, in your case the problem is that you actually have at least _two_ FTP connections: one in the background that was opened upon generation of the FTPHost instance and one for the remote file you are uploading. If you steadily transfer data during the upload, the problem must be with the original connection. If no one else comes up with a better idea, you can program a workaround by issuing ftphost_instance.chdir(ftphost_instance.curdir) in another thread. (Using getcwd won't work because this merely gets a cached value from the FTPHost instance without accessing the FTP server at all.) If you think that ftputil should implement such a workaround by itself, please file a bug report on the website, http://ftputil.sschwarzer.net/trac/wiki/IssueTracker . To enter a bug report, you have to login with ftputiluser and ftputil as username and password, respectively. Best regards, Stefan