Topic "Use existing connection for saving edited remote files"

Author Message
ks
[View user's profile]
Donor
Joined: 2008-09-18
Posts: 67
Location: Moscow
Hello.
When I save a remote file after editing WinSCP opens another (background?) connection to do so. That takes much more time than if I uploaded the local file to the server. Can you change this behaviour so that WinSCP would use the existing connection? Actually it is because of this problem that when I need to edit a remote file I always download it first, then edit it locally, then upload it again - this takes less time. Perhaps you can add an option to control this.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
WinSCP puts saved files onto transfer queue (upload on background connection is just a side effect of this), because as it allows you to edit multiple files in an external editors, there's nothing to prevent you saving another file while WinSCP if uploading the first one.
_________________
Martin Prikryl
ks
[View user's profile]
Donor
Joined: 2008-09-18
Posts: 67
Location: Moscow
prikryl wrote:
WinSCP puts saved files onto transfer queue (upload on background connection is just a side effect of this), because as it allows you to edit multiple files in an external editors, there's nothing to prevent you saving another file while WinSCP if uploading the first one.


I understand your original intent and it seems good. Yes, WinSCP does allow editing multiple files at the same time - in theory. But do people really do it?! I just got 1 head and 2 hands - hence - yes, I can open multiple files - but in practice I only edit one at a time, even if more are open. How on Earth could I save multiple files one after another?! Editing takes time - much longer than uploading. So the result of this good intent is much slower upload which renders the whole remote editing feature unsuitable for me.

Anyway - even if some people do need this feature - can you add an option to save remotely edited files via regular upload? I guess it's not much work.

OR

Can background transfer use the existing connection (option?) to avoid the overhead of connecting/disconnecting just because for a single file? You may object again that in that case I won't be able to up/download files the usual way until the transfer is done - but I WANT THAT BEHAVIOUR. Otherwise it's ridiculous: WinSCP already has an open connection ready for use, but in order to upload a file it opens another one (while the first is not used), and then closes it as soon as the transfer is done! I guess it would make more sense if WinSCP opened another connection only when the first one is being used at that very moment. It shouldn't even depend on whether the transfer is in background or not - WinSCP should have a pool of connections available to both modes, right?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
But WinSCP does not close the background connection after the transfer. It keeps it and reuses it for the other uploads/saves. So the only overhead is opening connection on the first save. Do you have a difference experience?
You can also limit number of background connection to 1, if you are experiencing WinSCP to open multiple background connections to the same server.
ks
[View user's profile]
Donor
Joined: 2008-09-18
Posts: 67
Location: Moscow
OK, only the first save. I didn't know that, I guess it was changed recently. Thank you.
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