SFTP automatically resumes in background

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MarkFilipak
Member
Member
Posts: 164
Joined: 2008-09-28, 01:00 UTC
Location: Mansfield, Ohio

SFTP automatically resumes in background

Post by *MarkFilipak »

What happens:
I'm doing an SFTP transfer.
I click [Pause]
The network transfer pauses; confirmed via Windows Sysinternals, Process Explorer.
I click [Background]
The transfer immediately resumes; confirmed via Windows Sysinternals, Process Explorer.

What I expected:
That the transfer would remain paused until I brought it back to the foreground and clicked [Start].
Hi Christian! Delighted customer since 1999. License #37627
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50561
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: SFTP automatically resumes in background

Post by *ghisler(Author) »

Sorry, the switch between foreground and background is only possible while the transfer is active. Otherwise it loops in a function and cannot be passed to the background.
Author of Total Commander
https://www.ghisler.com
User avatar
MarkFilipak
Member
Member
Posts: 164
Joined: 2008-09-28, 01:00 UTC
Location: Mansfield, Ohio

Re: SFTP automatically resumes in background

Post by *MarkFilipak »

ghisler(Author) wrote: 2020-11-03, 17:15 UTC Sorry, the switch between foreground and background is only possible while the transfer is active. Otherwise it loops in a function and cannot be passed to the background.
I understand... it's because the background process is launched in a separate thread, correct?

Could there be a way:
1, To put such a loop in the thread and signal to it in the main? [Pause background], Or
2, To always put SFTP in a separate thread?
Hi Christian! Delighted customer since 1999. License #37627
Post Reply