|
I'm trying to download 3 files at the same time, and it works most of the times, but sometimes this error occur. about 26mins after the first download was done(at 13:48:15), the other connections was closed(at 14:14:53)? So now I'm wondering if its the server or client that closes it? client logging:
Serverlogging:
It seems that the transfer ends after 60mins so maybe its network related? |
|
I have filtered the log to only show the affected transfer:
The reason for "closing data connection" message is not apparent from the log in this case without some knowledge about Rebex FTP internals. We will surely enhance the log to make it more informative. For now, this is basically what's going on inside:
What does this mean? The SocketException occured first. Then we reacted by closing the still-active data connection as well. The actual two messages in the log are reversed. So what does this mean? You are probably right and this is network related. After 60mins, something closes the FTP control connection. And this is something we have encoutered in the past - it sometimes happens with badly behaved firewalls or routers that silently close the main FTP connection 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:
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? Hi and thanks for this very well explained answer:) I have tried to set it to that option but it seems that I get another problem then, I will gather the new logs and post them tomorrow. Just gonna let it run for a bit more to be sure its nothing else that messing it up.
(18 Mar '10, 20:30)
Martin
Hello, any news on this?
(23 Mar '10, 16:13)
Lukas Pokorny ♦♦
|