Occasional Timeout

Advertisement

gknierim
Joined:
Posts:
2

Occasional Timeout

I am using the .NET assembly in a worker server to transfer files as needed. I am using 5.17.9 of the WinSCP.

I have a SMTP connection that occasionally will timeout after 15 seconds. I am not specifying the timeout in code (C#) but I read that the default timeout on the Session is 60 seconds. Is that still the case or how would I fix the following issue? I'm guessing increase the Session and sessionoptions timeouts? Do I set both? Here is part of the log when it is trying to copy a file from the SMTP server:
. 2021-02-18 08:35:49.387 Waiting for data timed out, asking user what to do.
. 2021-02-18 08:35:49.387 Asking user:
. 2021-02-18 08:35:49.387 **Host is not communicating for 15 seconds.
. 2021-02-18 08:35:49.387 
. 2021-02-18 08:35:49.387 Wait for another 15 seconds?** ()
< 2021-02-18 08:35:49.387 Script: Host is not communicating for more than 15 seconds.
< 2021-02-18 08:35:49.387 Still waiting...
< 2021-02-18 08:35:49.387 Note: If the problem repeats, try turning off 'Optimize connection buffer size'.
< 2021-02-18 08:35:49.387 Warning: Aborting this operation will close connection!
. 2021-02-18 08:36:50.700 Attempt to close connection due to fatal exception:
* 2021-02-18 08:36:50.700 **Terminated by user.**
. 2021-02-18 08:36:50.700 Closing connection.
. 2021-02-18 08:36:50.700 Sending special code: 1
. 2021-02-18 08:36:51.262 Connection was lost, asking what to do.
. 2021-02-18 08:36:51.262 Asking user:
. 2021-02-18 08:36:51.262 **Terminated by user.** ()
< 2021-02-18 08:36:51.262 Script: Terminated by user.
. 2021-02-18 08:52:01.465 --------------------------------------------------------------------------

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum