Hi,
I am having a strange problem. What I am doing is trying to tweak the Exftpconnection based on the local networ speed. If the user will use LAN connection I set the TransferBufferSize to a very high value to increase the transfer rate. If on WAN I decrease the buffer size. I have my own class which inherits ExFTPConnection.
Here is my code:
Me.Timeout= 60000
If Me.LowSpeed Then
'TODO:Low Speed is not attainable
'==Low Speed Throughput.
TransferBufferSize = 1024
TransferNotifyInterval = 2048
Else
'==High Speed Throughput.
TransferBufferSize = 2048000
TransferNotifyInterval = 2048000
End If
Now my question is, first: is this the best value for high and slow connections?
Second, if I by mistake leave the high TransferBufferSize value on when using a slow connection, say 256Kbps, I get a an IOException
Unable to read data from the transport connection. What is the best practice in what I am trying to achieve?
Thanks