ftplib storbinary with timeout on windows

Gerrit Holl gerrit at nl.linux.org
Mon Dec 29 10:19:02 CET 2003


Hello,

I am trying to upload a set of files to a ftp server from Windows.
Unfortunately, the ftp server is not very reliable, and sometimes the
connection seems to hang. A possible solution would be using a timeout,
specified before I try to upload the file. Under Windows, this can't be
done with signal.alarm, because it is unavailable. Am I looking for
ayncore or asynchat? Or is there a different, easier solution? How would
I use it in combination with FTPlib?

Using an external library is fine, but I am not very much of a windows
guy, so a crossplatform solution would be much preferred.

kind regards,
Gerrit Holl.

-- 
267. If the herdsman overlook something, and an accident happen in the
stable, then the herdsman is at fault for the accident which he has caused
in the stable, and he must compensate the owner for the cattle or sheep.
          -- 1780 BC, Hammurabi, Code of Law
-- 
Asperger's Syndrome - a personal approach:
	http://people.nl.linux.org/~gerrit/english/





More information about the Python-list mailing list