PuTTY bug pscp-psftp-fail-hang

PuTTY bug pscp-psftp-fail-hang

This is a mirror. The primary PuTTY web site can be found here.

Home | Licence | FAQ | Docs | Download | Keys | Links
Mirrors | Updates | Feedback | Changes | Wishlist | Team

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. For example:

  • 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.

Reports:

  • b56aaa9a0707310805j19d579edl771f744c76ce0eaa@mail.gmail.com
    Suggests that it's hanging in WaitForMultipleObjects(), and gives a patch which checks for INVALID_SOCKET which makes the hanging stop. Not investigated.
  • 3D5BAD49F3A5A041B739E301A5E337A5026C999F@CWYMSX06.Corp.Acxiom.net
  • 000801c7adf0$2244f7d0$0200a8c0@lsdbotii
  • 1ea6a0550705150757x5faba2a6y5f717f5f822d8451@mail.gmail.com
  • NDBBJBPCLJGMOADENDIAEEOECHAA.oru@opre.co.uk
  • 1187014011.602670.71550@g4g2000hsf.googlegroups.com on comp.security.ssh

Audit trail for this bug.


If you want to comment on this web site, see the Feedback page.
(last revision of this bug record was at 2007-09-23 18:24:47 +0100)