ftputil - uploading many files too long

Discussion in 'Python' started by geon, Jul 11, 2005.

  1. geon

    geon Guest

    Hi,

    When I try to upload many files I get such a error message:

    Traceback (most recent call last):
    File "I:\Python\my_py\wwwzaci\xcopy_ftp.py", line 51, in ?
    except: x=host.upload(zdroj, cilFTP,'b')
    File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 463, in uplo
    ad
    self.__copy_file(source, target, mode, open, self.file)
    File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 452, in __co
    py_file
    target = target_open(target, target_mode)
    File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 265, in file

    host = self._copy()
    File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 241, in _cop
    y
    return FTPHost(*self._args, **self._kwargs)
    File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 138, in __in
    it__
    self._session = self._make_session()
    File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 235, in _mak
    e_session
    return ftp_error._try_with_oserror(factory, *args, **kwargs)
    File "C:\prg\python24\Lib\site-packages\ftputil\ftp_error.py", line 78, in _tr
    y_with_oserror
    raise TemporaryError(obj)
    ftputil.ftp_error.TemporaryError: 421 Login Timeout (25 seconds): closing contro
    l connection.

    I think its not about many files but because of it takes too long for my ftp server (25s). I tried
    many things but nothing helps.

    Any help is appreciated...

    --
    geon
    geon, Jul 11, 2005
    #1
    1. Advertising

  2. geon schrieb:
    > Hi,
    >
    > When I try to upload many files I get such a error message:
    >
    > [...] traceback deleted
    >
    > ftputil.ftp_error.TemporaryError: 421 Login Timeout (25 seconds): closing contro
    > l connection.
    >
    > I think its not about many files but because of it takes too long for my ftp server (25s). I tried
    > many things but nothing helps.


    Well, the error message seems to say, that the server closes the
    connection because it timed out waiting for the client to login or
    because it was idle for to long.

    But without some example code that exhibits the problem we really can't
    devine what you are trying to do...

    Also note that ftputil has it's own mailing list.

    Regards, Chris
    Christopher Arndt, Jul 12, 2005
    #2
    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. peelman

    How many threads is too many?

    peelman, Jan 13, 2005, in forum: Java
    Replies:
    12
    Views:
    818
    Esmond Pitt
    Jan 15, 2005
  2. Rhino
    Replies:
    33
    Views:
    1,281
    Oliver Wong
    Dec 22, 2005
  3. rbt
    Replies:
    1
    Views:
    342
  4. Replies:
    0
    Views:
    571
  5. Dag Sunde
    Replies:
    4
    Views:
    345
Loading...

Share This Page