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].
SFTP automatically resumes in background
Moderators: Hacker, petermad, Stefan2, white
- MarkFilipak
- Member
- Posts: 164
- Joined: 2008-09-28, 01:00 UTC
- Location: Mansfield, Ohio
SFTP automatically resumes in background
Hi Christian! Delighted customer since 1999. License #37627
- ghisler(Author)
- Site Admin
- Posts: 50561
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: SFTP automatically resumes in background
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
https://www.ghisler.com
- MarkFilipak
- Member
- Posts: 164
- Joined: 2008-09-28, 01:00 UTC
- Location: Mansfield, Ohio
Re: SFTP automatically resumes in background
I understand... it's because the background process is launched in a separate thread, correct?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.
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