sftp interrupt hang

Damien Miller djm at mindrot.org
Sat Jul 31 19:20:45 EST 2010


On Sat, 31 Jul 2010, Ray Lai wrote:

> When downloading a file and the connection hangs due to crappy wifi,
> sftp just says "0.0 KB/s - stalled -". I hit ^C to kill it, but it
> just prints "Interrupt" and doesn't do anything, no matter how many
> times I hit ^C or how long I wait. Is this expected behavior? Or
> am I expected to kill the ssh connection itself with "~."?

When you interrupt a sftp transfer, it will wait for the server to
drain all its outstanding requests so it remains in a clean state to
issue another request.

If you really need to Kill It Right Now, use SIGQUIT (ctrl-\ usually).

-d


More information about the openssh-unix-dev mailing list