Hi,

We are using version 2.5.3009.0 of Rebex.Ftp.Net.dll.

We have found that for large transfers (200+ MB mov files) we occasionally get a "Timeout exceeded" exception. This does not occur all the time. This occurs on the Ftp.Put() command and it can occur at different points in the file transfer.

Is there a property that needs to be set to increase the timeout?

JD

asked 24 Nov '10, 10:27

Shamresh%20Khan's gravatar image

Shamresh Khan
16
accept rate: 0%

Once the failure has occurred, using another FTP client (fireZilla for example), the ftp goes through.

(24 Nov '10, 10:29) Shamresh Khan

I am looking through the logs I created and most of the failures occurs on exactly 50 mins of the ftp.Put(). Although some failures on the same file occurred on 25 mins and 45 mins from the start of the put command.

(24 Nov '10, 11:14) Shamresh Khan

Further to my last comment, failure on 50 mins is the initial problem. The other timeout periods may be a consequence of our FTP server behaving incorrectly after the first failure.

(24 Nov '10, 11:37) Shamresh Khan

I'm not 100% certain yet, but this seems to resemble an issue our clients encounter once in a while. Some badly behaved firewalls or routers silently close the main FTP connection while a data transfer is in progress because of inactivity - even though the main FTP connection is actually supposed to be inactive while the transfer is in progress (it uses a separate TCP connection).

Rebex FTP includes a workaround for this issue, but it doesn't work reliably with all FTP servers so it's disabled by default. To enable it, use this code:

client.Options |= FtpOptions.KeepAliveDuringTransfer; // C#

client.Options = client.Options Or FtpOptions.KeepAliveDuringTransfer ' VB.NET

This will cause a dummy NOOP command to be sent every 600 seconds (10 minutes) - you can also specify a longer interval by changing the value of Ftp object's KeepAliveDuringTransferInterval property.

Does enabling this option help?

link

answered 24 Nov '10, 15:54

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.4k28
accept rate: 31%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×152

Asked: 24 Nov '10, 10:27

Seen: 917 times

Last updated: 30 Mar '11, 23:23