PuTTY bug pscp-psftp-fail-hang
This is a mirror. The primary PuTTY web site can be found here
summary: PSCP/PSFTP hang on exit in some failure cases
class: bug: This is clearly an actual problem we want fixed.
priority: high: This should be fixed in the next release.
absent-in: 0.58 2006-08-13
present-in: 2006-08-27 0.59 0.60 2007-09-23
PSCP and PSFTP on Windows can hang on exit in various failure situations.
Many of these involve the -batch option, which is embarrassing.
- User aborts at host key verification (or -batch is specified,
which has the same effect).
- -batch is specified and no non-interactive authentication
method is successful.
Interestingly, Plink does not appear to hang in similar situations (and
nor does PuTTY proper).
PSCP/PSFTP do not hang in all failure situations -- for instance,
they appear not to hang when interactive password authentication fails.
Looking at when this crept in, it might be another side-effect of the
introduction of the winhandl.c mechanism.
Suggests that it's hanging in WaitForMultipleObjects(),
and gives a patch which checks for INVALID_SOCKET which makes
the hanging stop. Not investigated.
Audit trail for this bug.
If you want to comment on this web site, see the
(last revision of this bug record was at 2007-09-23 18:24:47 +0100)