Software Caused Connection Abort - Session Closed Automatic?

Advertisement

ngmunfye
Joined:
Posts:
8

Software Caused Connection Abort - Session Closed Automatic?

I Developed a WINSCP Scripting with JSCRIPT (Check File Exitence and Keeuptodate if Local Folder changes, copy to SFTP Server, I reading a session from WINSCP.ini)

I want the script to be handle if network connection is down, the keepuptodate/transfer session will resume and connect.

I encountered an error IF KEEPUPTODATE DID NOT DETECT ANY CHANGES DURING NETWORK IS DOWN.

Scanning 'C:\tempdata\' for subdirectories...
Watching for changes in 1 directories...
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!
(A)bort (60 s):
Network error: Software caused connection abort
Session 'AutoFTP' closed.

I found out the Auto-Reconnect is working if there is changes detect before the Network is down shown in attached.

sftpReconnect.png

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: Software Caused Connection Abort - Session Closed Automatic?

Sorry, this is not possible atm.
But you can loop your script to resume.

Reply with quote

ngmunfye
Joined:
Posts:
8

In WINSCP GUI Mode, when Used Keep Remote Directory up to date to monitor Local Folder for file changes and If changes will copy to SFTP Server Path. When Network Is Down during Monitor. It will prompt the Error Message Box "Network Error: No Route to host" and It will keep tried for Reconnect for every 5 seconds until network is up. . This is very good Product/Features.

I'm Looking for Auto-Reconnect features that can used in Scripting/Automation method.

Is there any workaround?

Reply with quote

Advertisement

You can post new topics in this forum