Home Forums .NET libraries Xceed SFTP/FTP for .NET vsftpd NOOP command execution timed-out over http proxy

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #21409 |

    Hi,

    To vsftpd over http proxyNOOP command is timed out and Xceed.Ftp.FtpTimeoutException is thrown

    before “200 NOOP ok” reply comes.

    To proftpd over http proxy, NOOP command ends successfully and no Exception is thrown.

     

    [Xceed.Ftp  4.5.13060.10140 FtpClient Setting]

    FtpClient#SendFile method 

    Timeout = 600

    KeepAliveInterval = 20(in Http Proxy Setting Case1),  30(in Http Proxy Setting Case2)

    PassiveTransfer = true 

    RepresentationType =  RepresentationType.Binary

    [Http Proxy Setting Case1]

    Timeout = 180 

    Client-Proxy Keep-Alive = 10 seconds

    Proxy-Internet Keep-Alive = 60 seconds

    [Http Proxy Setting Case2]

    Timeout = 600

    Client-Proxy Keep-Alive = 30 seconds

    Proxy-Internet Keep-Alive = 60 seconds

    [vsftpd 2.2.2 Setting]

    idle_session_timeout=600

    data_connection_timeout=120 

     [PC Environment]

    Xceed .Ftp 4.5.13060.10140

     VS2005 C#

    .NET Framework 2.0.50727 SP2 

    Windows XP Pro SP3  x86

     

    Here is an output Log in Http Proxy Setting Case1

    ————————————————————

     2013-01-22 09:18:57,265 [INFO ] <–: 220 (vsFTPd 2.2.2)

     2013-01-22 09:18:57,281 [INFO ] –>: USER ********

     2013-01-22 09:18:57,296 [INFO ] <–: 331 Please specify the password.

     2013-01-22 09:18:57,296 [INFO ] –>: PASS ********

     2013-01-22 09:18:57,343 [INFO ] <–: 230 Login successful.

     2013-01-22 09:18:57,343 [INFO ] –>: CWD /

     2013-01-22 09:18:57,359 [INFO ] <–: 250 Directory successfully changed.

     2013-01-22 09:18:57,359 [INFO ] –>: TYPE A

     2013-01-22 09:18:57,375 [INFO ] <–: 200 Switching to ASCII mode.

     2013-01-22 09:18:57,375 [INFO ] –>: PASV

     2013-01-22 09:18:57,390 [INFO ] <–: 227 Entering Passive Mode (*,*,*,*,187,191).

     2013-01-22 09:18:57,390 [INFO ] –>: LIST 0001*

     2013-01-22 09:18:57,421 [INFO ] <–: 150 Here comes the directory listing.

     2013-01-22 09:18:57,593 [INFO ] <–: 226 Directory send OK.

     2013-01-22 09:18:57,671 [INFO ] <–: 0001 4,096 2013/01/11 17:50:00

     2013-01-22 09:18:57,671 [INFO ] –>: CWD 0001

     2013-01-22 09:18:57,687 [INFO ] <–: 250 Directory successfully changed.

     2013-01-22 09:18:57,687 [INFO ] –>: TYPE A

     2013-01-22 09:18:57,703 [INFO ] <–: 200 Switching to ASCII mode.

     2013-01-22 09:18:57,703 [INFO ] –>: PASV

     2013-01-22 09:18:57,718 [INFO ] <–: 227 Entering Passive Mode (*,*,*,*,205,124).

     2013-01-22 09:18:57,718 [INFO ] –>: LIST Send*

     2013-01-22 09:18:57,750 [INFO ] <–: 150 Here comes the directory listing.

     2013-01-22 09:18:57,921 [INFO ] <–: 226 Directory send OK.

     2013-01-22 09:18:57,921 [INFO ] <–: Send 4,096 2013/01/22 9:15:00

     2013-01-22 09:18:57,921 [INFO ] –>: CWD Send

     2013-01-22 09:18:57,937 [INFO ] <–: 250 Directory successfully changed.

     2013-01-22 09:18:57,937 [INFO ] –>: TYPE I

     2013-01-22 09:18:57,953 [INFO ] <–: 200 Switching to Binary mode.

     2013-01-22 09:18:57,953 [INFO ] –>: PASV

     2013-01-22 09:18:57,968 [INFO ] <–: 227 Entering Passive Mode (*,*,*,*,196,253).

     2013-01-22 09:18:57,968 [INFO ] –>: STOR ftp4j-1.7.2.zip

     2013-01-22 09:18:58,000 [INFO ] <–: 150 Ok to send data.

     2013-01-22 09:18:58,015 [INFO ] 8,192/475,090,051 bytes, 0%, elapsed:00:00:00.0781250

     2013-01-22 09:18:58,015 [INFO ] 16,384/475,090,051 bytes, 0%, elapsed:00:00:00.0781250

     …..

     2013-01-22 09:19:17,921 [INFO ] 62,390,272/475,090,051 bytes, 13%, elapsed:00:00:19.9843750

     2013-01-22 09:19:17,921 [INFO ] 62,398,464/475,090,051 bytes, 13%, elapsed:00:00:19.9843750

     2013-01-22 09:19:17,937 [INFO ] –>: NOOP

     2013-01-22 09:19:47,015 [WARN ] FtpTimeoutException has caught. 

     2013-01-22 09:19:47,015 [WARN ] Transferred: False

     2013-01-22 09:19:47,015 [ERROR] The FTP command execution timed-out.

     2013-01-22 09:19:47,015 [ERROR] Xceed.Ftp.FtpTimeoutException: The FTP command execution timed-out.

       at Xceed.Ftp.Engine.FtpCommandSequence.EndExecute(IAsyncResult asyncResult)

       at Xceed.Ftp.FtpClient.DoExecuteCommand(FtpCommandChannel commandChannel, BaseFtpCommand command)

       at Xceed.Ftp.FtpClient.DoSendFile(FtpCommandChannel commandChannel, SendFileFtpCommandSequence sequence)

       at Xceed.Ftp.FtpClient.SendFile(String localFilename, String remoteFilename, Boolean append)

       at …..

     2013-01-22 09:19:47,031 [INFO ] <–: 226 Transfer complete.

     2013-01-22 09:19:47,234 [INFO ] <–: 200 NOOP ok.

     2013-01-22 09:19:55,343 [INFO ] –>: QUIT

     2013-01-22 09:19:55,359 [INFO ] <–: 221 Goodbye.

    ————————————————————

     

     

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Noriyuki (had 1428 views)

    Diane [Xceed]
    Moderator
    Post count: 1353

    Hi Noriyuki,

    Try leaving the KeepAliveInterval to its default value of 0.

    From the documentation:

    “Not all FTP servers support receiving NOOP commands during file transfers.

    It’s
    been observed that these servers will act strangely, not reply to the
    command, or only send the reply after the file transfer has completed.
    This will cause the component to throw a timeout exception since it’s
    expecting a reply within the timeout period.”

    http://doc.xceedsoft.com/products/XceedFileSystem/topic1791.html

     

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Diane [Xceed] (had 883 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.