SSH connection hanging on logout

Markus Friedl markus.friedl at informatik.uni-erlangen.de
Sat May 19 06:05:42 EST 2001


On Fri, May 18, 2001 at 02:48:56PM -0000, John Bowman wrote:
> > 
> > these are still not the traces i'm looking for.
> > you need to make sure that SSHD still does
> > reads after the SIGCLD:
> > 
> > 	debug1: Received SIGCHLD.
> > 	...
> > 	debug3: channel 0: read rfd 10 len 16384
> > 
> Sorry, I've tested many different cases, such as these ones
> 
> ssh -v -v -v localhost dd if=/usr/local/netscape/netscape bs=1300000 count=10 | ( sleep 5 ; md5sum )
> 
>  ssh -v -v -v localhost dd if=/usr/local/netscape/netscape bs=1300000 count=10 | ( sleep 50 ; md5sum )
> 
> ssh -v -v -v localhost dd if=/usr/local/netscape/netscape bs=1300000 count=1 | ( md5sum )


ok, so just fyi:
	dd if=/bsd bs=65536 count=2
gets truncated on my openbsd development system.

you have to get into this situtation:

	shell writes last block into pipe to sshd process.
	shell dies
	not all data has been read from the pipe.

i can trigger this with
	dd if=/bsd bs=65536 count=2

the figures should be different for other systems, but i think
all systems will show this problem.



More information about the openssh-unix-dev mailing list