Bug 1888 - sftp-server hang on quit
Summary: sftp-server hang on quit
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sftp-server (show other bugs)
Version: 3.7.1p2
Hardware: Other Other
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-14 21:30 AEST by DerekW
Modified: 2021-04-23 15:04 AEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DerekW 2011-04-14 21:30:27 AEST
ssh and sftp-server work well except when entering quit from client side for sftp session, Causes session to hang, Ctrl-C closes session but this must be done using batch from mainframe.
ssh session exiting works fine.

Server - HP NonStop Itanium Blade (TANDEM)
OS - Guardian - J06.09.01
ssh version - openssh-3.7.1p2 (ITUGLIB) running on Floss.

Searched for various Patches, Implemented but not Suscessfull.

sftp -> Quit = From Server:-

debug1: session_input_channel_req: session 0 req subsystem
subsystem request for sftp
debug1: subsystem: exec() /usr/local/libexec/sftp-server
debug2: fd 10 setting O_NONBLOCK
debug2: fd 10 is O_NONBLOCK
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
chan_shutdown_write - nchan.c /* debug line in nchan.c */

HANG..until Ctrl-C from Client.
Comment 1 Damien Miller 2015-04-17 14:44:08 AEST
3.7.2 was many years old when this bug was filed. In the unlikely case that you're still running it, could you try recreating this with a newer version?
Comment 2 Darren Tucker 2019-01-23 20:09:30 AEDT
There is a modern port to Tandem Nonstop (source code at
https://github.com/rsbeckerca/openssh-portable/tree/randall, it sounds like they do binary releases too) so if anyone is looking for a fix for this that's what I'd suggest trying.
Comment 3 Damien Miller 2021-04-23 15:04:35 AEST
closing resolved bugs as of 8.6p1 release