Home Forums .NET libraries Xceed SFTP/FTP for .NET Getting disconnected from FTP site

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

    I’m trying to download thousands of files and it only got about 3/4 the way done. Here is the log file after setting the tracewrite for the FTPConnection object (this is only the last 2 file downloads):

     

    Data connection established with 172.28.132.71:1719 on 11/9/2010 @ 1:58:21 PM
    < 125 Data connection already open; Transfer starting.
    < 226 Transfer complete.
    > CWD /ltstorage/TestFTP/PreProd/DL/CI/MailedDate
    < 250 CWD command successful.
    > TYPE I
    < 200 Type set to I.
    > PASV
    < 227 Entering Passive Mode (172,28,132,71,6,184).
    > RETR 6498283_DL_09-28-2010.txt
    Data connection established with 172.28.132.71:1720 on 11/9/2010 @ 1:58:21 PM
    < 125 Data connection already open; Transfer starting.
    < 426 Connection closed; transfer aborted.
    < 421 Timeout (120 seconds): closing control connection.
    < 421 Terminating connection.
    Disconnected from 172.28.132.71:21 on 11/9/2010 @ 2:01:08 PM

     Why is my program disconnecting? I have timeout period in my code set to 3600 (I’m assuming that’s seconds which translates to 1 hour and the process only took 15 minutes.)

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

    User (Old forums)
    Member
    Post count: 23064

    I found out that the reason this is occurring is because the FTP process takes low priority while going through our DMZ firewall, thus losing the FTP connection. So my next question is, is there a method or property that I can set to make sure that I don’t lose this connection? Because when I do lose the connection, there are NO exceptions that are throw so my program just hangs. I see the KeepAliveInterval and documentation says that you don’t need to set this for anything less than 15 minutes, but this is disconnecting after just a couple minutes. Should I set this interval to 1 minute/30 seconds, would that help?

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

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