martin wrote:
With SCP protocol reconnect is not supported at all. That's why it does not reconnect.
With SFTP protocol you have to turn it off explicitly, if you do not want it. Set Session.ReconnectTime
to zero to turn of reconnect completely.
Im still unable to get it to STOP trying to reconnect when using SFTP
When using the WinSCP GUI i see a box appear seeing "Host is not communcation for more then 15 seconds"
giving me the option to Abort.
Then a box to Abort user, and the connection.
Looking at the log file for my C sharp code.
i see this is the log it seems to stick in a loop forever going around Looking up host "REMOVED"
What setting do I need to pass to make it abort if it fails, and not to retry.
log below.
Binary transfer mode selected.
. Checking existence of partially transfered file.
. Opening remote file.
> Type: SSH_FXP_OPEN, Size: 45, Number: 16899
< Type: SSH_FXP_HANDLE, Size: 13, Number: 16899
> Type: SSH_FXP_FSTAT, Size: 13, Number: 17160
< Type: SSH_FXP_ATTRS, Size: 37, Number: 17160
> Type: SSH_FXP_READ, Size: 25, Number: 17413
. Waiting for data timed out, asking user what to do.
. Asking user:
. **Host is not communicating for 15 seconds.
.
. Wait for another 15 seconds?** ()
< Script: Host is not communicating for more than 15 seconds.
< Still waiting...
< Note: If the problem repeats, try turning off 'Optimize connection buffer size'.
< Warning: Aborting this operation will close connection!
. Attempt to close connection due to fatal exception:
* **Terminated by user.**
. Closing connection.
. Sending special code: 12
. Sent EOF message
. Connection was lost, asking what to do.
. Asking user:
. Terminated by user. ()
< Script: Terminated by user.
< Script: Searching for host...
. Looking up host "REMOVED"
. Connecting to REMOVED port xxxx
. Failed to connect to REMOVED: Network error: No route to host
. Connection was lost, asking what to do.
. Asking user:
. Network error: No route to host "REMOVED". ()
< Script: Network error: No route to host "REMOVED".
< Script: Searching for host...
. Looking up host "REMOVED"