Reconnect

Advertisement

V_eron
Guest

Reconnect

Suggestion:

I would like an option (if possible) where winscp autoreconnects silently (without noticing me).
For example if connection=lost and doing something with server autoreconnect silently (instead of showing the reconnect question (or the autoreconnect in x seconds dialog))
else if connection=lost and no server interaction : stop keep alive and whenever negotiaton with the server is needed restore connection.

Because apparently i lose connection a lot with my server (free (ftp) server...). And the lost connection dialog boxes are starting to ennoy me :)

Reply with quote

Advertisement

W.Ed.
Joined:
Posts:
8

There are some ftp servers disconnecting with "Disconnected from server
No Transfer Timeout (600 seconds): closing control connection."

Seems that CuteFTP "Smart keepalive" are working for it sending this commands:

pwd
rest 0
type I
type A
list

Reply with quote

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

W.Ed. wrote:

There are some ftp servers disconnecting with "Disconnected from server
No Transfer Timeout (600 seconds): closing control connection."

Seems that CuteFTP "Smart keepalive" are working for it sending this commands:

pwd
rest 0
type I
type A
list
WinSCP does
pwd
rest 0
type a
type i

Hence the only difference is "list". Hard to tell if it can make any difference.

Reply with quote

W.Ed.
Joined:
Posts:
8

martin wrote:

W.Ed. wrote:

There are some ftp servers disconnecting with "Disconnected from server
No Transfer Timeout (600 seconds): closing control connection."

Seems that CuteFTP "Smart keepalive" are working for it sending this commands:

pwd
rest 0
type I
type A
list
WinSCP does
pwd
rest 0
type a
type i

Hence the only difference is "list". Hard to tell if it can make any difference.

Can u make a test version for me with this differences?
I can test it on 2-5 servers.

Reply with quote

Advertisement

W.Ed.
Joined:
Posts:
8

martin wrote:

W.Ed. wrote:

Can u make a test version for me with this differences?
I can test it on 2-5 servers.
Ok, will do.

Look at your mailbox

Reply with quote

Uberadri
Guest

Did you test it? Did it work? I loose connection with my server all the time due to "No transfer timeout", and this is extremely annoying when I'm using "Keep remote directory up to date". An improved keep alive function would be great! :) But couldn't you solve it with a script that sends a small file to the server at a specified interval? How would you make such a script?

Reply with quote

W.Ed.
Joined:
Posts:
8

Uberadri wrote:

Did you test it? Did it work? I loose connection with my server all the time due to "No transfer timeout", and this is extremely annoying when I'm using "Keep remote directory up to date". An improved keep alive function would be great! :) But couldn't you solve it with a script that sends a small file to the server at a specified interval? How would you make such a script?
Testing...

Reply with quote

Advertisement

Totti
Guest

same Problem

Heyho,
i'm encountering the same problem with the no transfer timeout after 300seconds.

Would be looking forward to a fix :)

Reply with quote

Totti
Guest

would be glad to test it, too ... could test it on the server i have problems with (as on the others it is working with the current version).

Reply with quote

Advertisement

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

Totti wrote:

would be glad to test it, too ... could test it on the server i have problems with (as on the others it is working with the current version).
Can you provide me your email address, so I can send you a debug version of WinSCP to track the problem? If you do not want to post the address here, you can send me an email. You will find it in my forum profile (if you log in). Thanks.

Reply with quote

martin
Site Admin
martin avatar

Uberadri wrote:

Any progress?... Would someone like to make a script as a temporarily solution?
It was implemented in 4.1 beta already. Unfortunately it introduced another problem. So hopefully it will work in 4.1.1.

Reply with quote

Advertisement

alexbela
Guest

Any news about auto-reconnect?

Hello, thanks for the great work.-
We're using WinSCP at a client's site for transferring backups to a remote server via SFTP. Therefore we wrote a simple transfer-script
option batch on
option confirm off
put -delete "%backupdir%\*.zip" /home/%remoteuser%/backupsets/
exit
Unfortunately the client's site has dial-up internet-connection and has a mandatory reconnect after 24 hours.

Currently we're using WinSCP 4.1.15, but whenever the internet connection reconnects the script stops and shows the message "connection lost" in a separate dialog-window. After that, we must restart the whole script because of the error message
Zeitüberschreitung beim Warten auf den Abschluß der Befehlsausführung
Is it possible (via an option for open and put, for example) to get the script try to reconnect and resume the file-transfer automatically?

thx in advance

Alex

Reply with quote

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

Re: Any news about auto-reconnect?

alexbela wrote:

Currently we're using WinSCP 4.1.15, but whenever the internet connection reconnects the script stops and shows the message "connection lost" in a separate dialog-window. After that, we must restart the whole script because of the error message...
Can you provide me your email address, so I can send you a debug version of WinSCP to track the problem? If you do not want to post the address here, you can send me an email. You will find it (if you log in) in my forum profile. Thanks.

Reply with quote

jesus2099
Joined:
Posts:
1
Location:
Paris

Offline mode a la smartFTP

Hello,

Still on the reconnect topic.
My server keeps disconnecting me because of No Transfer Timeout.
Well I see no mistake here, it is normal not to keep connections open for long time.
In this way I think keep-alive is not a good choice (it doesn't work for my No Transfer Timeout anyway).

Instead I think it would be really cool if you could implement the offline mode like in smartFTP.

Once you browsed through the remote folders, the filelists are kept locally. Whenever the server wants to disconnect is not an issue, you can still browse through your known remote structure without being bugged by modal popups.

Then, right whenever needed (drag and drop transfer, rename, chmod, browse a new folder, refresh filelist), winSCP would just kindly reconnect before doing such an action.

This let the user not to care about connection, disconnection, reconnection difficulties.

I have a small hope to see this sometimes in winSCP as it is a feature that gets added on other clients sich as filezilla and smartFTP (which created the feature AFAIK).
I would be glad that it also comes here because the interface of WinSCP looks better to me, in some ways.

Reply with quote

Advertisement

You can post new topics in this forum