hanging ssh connections (still)

Rob Hagopian rob at hagopian.net
Fri Dec 1 07:16:55 EST 2000


Actually, that works fine for me in quick testing:

> sleep 10&exit
[1] 26610
logout
Connection to dhoose301 closed.

> sh
$ sleep 10&exit
> exit
logout
Connection to dhoose301 closed.

> nohup sleep 10 & exit
[1] 26619
logout
Connection to dhoose301 closed.

(both machines are FreeBSD 3.5 and running the latest 2.3.0p2 snap)

That did hang between two linux boxen, the client running 2.3.0p1 and the
server running 2.2.0p1 from RedHat 7...

I'll set up and overnight test for the FreeBSD systems...
						-Rob

On Thu, 30 Nov 2000 mouring at etoh.eviladmin.org wrote:

> Damien backed out of all the current hacks.  So yes any background
> processes will cause ssh client to hang until they are resolved.
> 
> This is also true for doing "nohup" commands.
> 
> I have another angle to look at tonight.  But I spent most of last night
> without any luck in coming up with a work around that is correct.  (I have
> a workaround.. But it's a hack to the server_loop() call which causes
> channel errors which cause it to close right.. Which is 100% wrong.=)
> 
> If you look back on the list Damien Miller describes the problem as it
> occurs under Linux.
> 
> try:
> 
> ssh localhost
> then: sleep 10&exit
> 
> if it does not quit ssh right away it's the same problem that we are
> looking for a solution on Linux.
> 
> - Ben
> 
> 
> 
> On Thu, 30 Nov 2000, Rob Hagopian wrote:
> 
> > Using the latest snapshot, I'm still getting periodic ssh sessions hanging
> > after they've completed. It used to be very common, but the prior fixes
> > reduced the frequency to about one hung per day (out of thousands). These
> > don't timeout at any point, they'll hang around for days if not killed
> > manually (blocking the scripts from continuing).
> > 
> > The commands ssh is hanging on are nothing but simple shell scripts on
> > FreeBSD 3.5 (the shell for the account is tcsh, the scripts use sh).
> > 
> > I'm not sure how to go about providing more information as it's not
> > practical to run sshd in debug mode every time. I'd be happy to try
> > anything out though...
> > 								-Rob
> > 
> > 
> 






More information about the openssh-unix-dev mailing list