ftplib storbinary with timeout on windows

Discussion in 'Python' started by Gerrit Holl, Dec 29, 2003.

  1. Gerrit Holl

    Gerrit Holl Guest

    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/
     
    Gerrit Holl, Dec 29, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Scott Ballard

    newbie question: ftp.storbinary()

    Scott Ballard, Jan 23, 2007, in forum: Python
    Replies:
    1
    Views:
    610
    Ayaz Ahmed Khan
    Feb 3, 2007
  2. Gabriel Genellina

    Re: newbie question: ftp.storbinary()

    Gabriel Genellina, Jan 24, 2007, in forum: Python
    Replies:
    0
    Views:
    416
    Gabriel Genellina
    Jan 24, 2007
  3. Facundo Batista

    Re: newbie question: ftp.storbinary()

    Facundo Batista, Jan 24, 2007, in forum: Python
    Replies:
    0
    Views:
    368
    Facundo Batista
    Jan 24, 2007
  4. Florian  Demmer

    Interrupting ftplib.storbinary()

    Florian Demmer, Apr 26, 2007, in forum: Python
    Replies:
    3
    Views:
    322
    billiejoex
    Apr 29, 2007
  5. Brendan
    Replies:
    4
    Views:
    2,080
    Giampaolo Rodola'
    Dec 30, 2009
Loading...

Share This Page