Topic "Software Caused Connection Abort - Session Closed Automatic?"

Author Message
ngmunfye
[View user's profile]

Joined: 2012-12-17
Posts: 8
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.

Quote:
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 (71.58 KB)

Description: (none)

sftpReconnect.png

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Sorry, this is not possible atm.
But you can loop your script to resume.
ngmunfye
[View user's profile]

Joined: 2012-12-17
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?
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License