Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in .NET FTP by (700 points)
Hi,

I am having a problem when the transferbuffersize property value is too high. I usually do this to increase the transfer speed. However if my user mistakenly sets High TransferBufferSize while having a slow link, the problem appears. The problem is that the Upload method throws an exception saying that a timeout occurred. To resolve this I set the TimeOut property to 60000 but the exception still throws. How can I handle such error.

Here are the values I use:


TransferBufferSize = 2048000
TransferNotifyInterval = 2048000

Thanks

1 Answer

0 votes
by (162k points)
Best to restrict the values that the user can enter. A transfer buffer is a byte array, and shouldn't really be bigger than say 96K bytes. I doubt making it any bigger will help.

Categories

...