A
A
Andrey Prokopyuk2012-12-27 23:18:50
Software Deployment
Andrey Prokopyuk, 2012-12-27 23:18:50

Ant: ftp command running slowly

I couldn't find any information that would indicate that anyone else had this problem, but I have it on two computers. The command is written like this:

        <ftp action="send"
             server="${HOST}"
             port="${PORT}"
             userid="${LOGIN}"
             password="${PASSWORD}"
             remotedir="${DIR}"
             passive="yes"
             binary="yes"
             verbose="yes"
             depends="no">
            <fileset dir="tmp" />
        </ftp>


It uploads two files to the server with a total size of about 800 KB. This usually takes about a minute. If you upload the same files through an ftp client, it takes a few seconds.

Some sources said that this could happen with depends = "yes", but changing this parameter in my case had no effect.

What can be wrong? What other information do you need to provide?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
3
3vi1_0n3, 2012-12-28
@3vi1_0n3

With these inputs, it just came to my mind:
enableRemoteVerification
Whether data connection should be verified to connect to the same host as the control connection. This is a security measure that is enabled by default, but it may be useful to disable it in certain firewall scenarios. since Ant 1.8.0
Required: No, default is true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question