public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, through Cisco PIX
@ 2003-01-24 18:43 David C Niemi
  2003-01-24 20:29 ` David S. Miller
                   ` (3 more replies)
  0 siblings, 4 replies; 46+ messages in thread
From: David C Niemi @ 2003-01-24 18:43 UTC (permalink / raw)
  To: linux-kernel


I have been experiencing some baffling SSH client hangs under 2.5.59 (and
55) in which the session totally hangs up after I have typed (typically)
10-100 characters.  Right before it hangs permanently, a character is
echo'd back to the screen several seconds late.  Interestingly, data due
back for my client which is initiated by the server side does make it, I 
just can't type anything further.

To reproduce this: ssh in to a somewhat distant host.  At a command 
prompt, hold down a letter key for a couple of minutes, or just type text 
in.  If you cut'n'paste text, it rarely hangs (my guess is that this 
requires a lot fewer round trips than interactive typing).  It should hang 
before you get a screenful (sometimes the sessions hang even before they 
are set up).

The system involved is a new Dell desktop with a P4/2.6 CPU and an
integrated Intel E1000 NIC, being used at 100Mb full duplex
(autonegotiated).  Sessions go through a Cisco PIX on their way to
anywhere useful.  The problem doesn't seem to occur if the SSH client and
server are on the same subnet; I'm not sure whether the PIX is an
essential cause of this or if any old router would do the same thing.  
I've also reproduce it while being attached to different 100TX switches,
so I think the problem is higher-level.

As for networking options, I see the problem both using the (rather 
extensive) default options, and a stripped down set of options with no QOS 
or netfilter or anything else fancy.

Neither "ifconfig" nor dmesg show *any* errors whatsoever.

Anyone else seeing SSH client hangs to nonlocal hosts under 2.5.59?

David C Niemi


^ permalink raw reply	[flat|nested] 46+ messages in thread
* Re: [TEST FIX] Re: SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x,
@ 2003-02-03 14:23 Franz Sirl
  2003-02-03 17:11 ` J Sloan
  2003-02-03 21:04 ` Bill Davidsen
  0 siblings, 2 replies; 46+ messages in thread
From: Franz Sirl @ 2003-02-03 14:23 UTC (permalink / raw)
  To: bill davidsen; +Cc: linux-kernel

On 2003-02-02 15:40:33 Bill Davidsen wrote:
>On Wed, 29 Jan 2003, David C Niemi wrote:
>
> >
> > On Tue, 28 Jan 2003, David S. Miller wrote:
> > >    From: kuznet@ms2.inr.ac.ru
> > >    Date: Wed, 29 Jan 2003 02:56:41 +0300 (MSK)
> > >
> > >    Hey! Interesting thing has just happened, it is the first time when I
> > >    found the bug formulating a senstence while writing e-mail not while
> > >    peering to code. :-)
> > >
> > > Congratulations :-)
> >
> > Just to confirm, this fix works for me as well.
> >
> > ...
> > > Indeed, this bug exists in 2.4 as well of course.
> > >
> > > This bug is 2.4.3 vintage :-)  It got added as part of initial
> > > zerocopy merge in fact.
> >
> > Odd, then, that it I was unable to reproduce the SSH hangs under 2.4.18
> > even once, despite heavily using it for several days under the same
> > circumstances.  Is there any reason 2.4.x would be better able to 
> recover?
> > 2.5.59 with the fix seems to feel a bit less balky than 2.4.18 without the
> > fix, so it seemed to me that 2.4.18 had some way of recovering at the cost
> > of a several second pause in the session.
>
>The problem which I have been seeing with some regularity is not the hang
>you describe (I see that infrequently) but rather a hang after I exit an
>ssh connection. I open several dozen windows at a time to a cluster when I
>do admin, and when I close almost always at least one doesn't drop without
>"~." to help. So far in a hour I haven't seen that.

That's some internal problem in OpenSSH, can be seen on Solaris as well. 
Can be easily reproduced in a ssh session:

nohup sleep 60 &
logout

The ssh session will terminate only after the sleep exited.

Franz.



^ permalink raw reply	[flat|nested] 46+ messages in thread
[parent not found: <Pine.LNX.3.96.1030203155651.28323A-100000@dstl.gov.uk>]
* Re: [TEST FIX] Re: SSH Hangs in 2.5.59 and 2.5.55 but not  2.4.x,
@ 2003-02-04 19:54 jjs
  0 siblings, 0 replies; 46+ messages in thread
From: jjs @ 2003-02-04 19:54 UTC (permalink / raw)
  To: linux kernel

Tony Gale wrote:

>
> The ssh hang on exit "problem" is a policy of the ssh coders. It'll
> happen when you have a background job still running when you exit, which
> is still connected to the terminal.
>
> As I said, it's an ssh policy issue (which many people disagree with)
> and not a bug.
>
So, admin logs in and restarts a process -
a very very common task. oops, can't log out.

Sure sounds like a thinko to me, if not a bug.

Demoronized openssh packages for
suse and redhat are available by
popular request from:

ftp.mainphrame.com/pub/openssh

Joe


^ permalink raw reply	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2003-02-04 19:44 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-24 18:43 SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, through Cisco PIX David C Niemi
2003-01-24 20:29 ` David S. Miller
2003-01-24 20:46 ` lost
2003-01-24 21:15   ` Christopher Faylor
2003-01-25  2:00     ` SSH Hangs in 2.5.59 and 2.5.55 (TCP_NODELAY?) Christopher Faylor
2003-01-27 14:27 ` SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, through Cisco PIX David C Niemi
2003-01-27 18:06   ` David S. Miller
2003-01-27 18:11   ` David S. Miller
2003-01-27 18:28     ` Anders Gustafsson
2003-01-27 22:36       ` [TEST FIX] " David S. Miller
2003-01-28  2:25         ` lost
2003-01-28  2:57         ` [TEST FIX] Re: SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, kuznet
2003-01-28  3:22           ` Christopher Faylor
2003-01-28  3:39         ` [TEST FIX] Re: SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, through Cisco PIX Christopher Faylor
2003-01-28  3:55           ` kuznet
2003-01-28  7:08             ` dada1
2003-01-28 12:36               ` Sebastian Benoit
2003-01-28 14:09                 ` kuznet
2003-01-28 18:35                   ` David S. Miller
2003-01-28 19:16                     ` Sebastian Benoit
2003-01-28 20:34                       ` David S. Miller
2003-01-28 21:59                         ` Christopher Faylor
2003-01-28 22:12                         ` Sebastian Benoit
2003-01-28 23:21                           ` David S. Miller
2003-01-29  0:02                             ` [TEST FIX] Re: SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, kuznet
2003-01-29  0:09                             ` kuznet
2003-01-29  0:46                               ` Sebastian Benoit
2003-01-29  4:12                                 ` Christopher Faylor
2003-01-29  6:52                               ` David S. Miller
2003-01-28 23:56                         ` kuznet
2003-01-29  0:08                           ` David S. Miller
2003-01-29  3:14                             ` kuznet
2003-01-29  7:32                               ` David S. Miller
2003-01-29 14:12                             ` David C Niemi
2003-01-29 14:24                               ` kuznet
2003-01-29 15:11                                 ` dada1
2003-02-02 15:40                               ` Bill Davidsen
2003-01-27 21:27 ` SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, through Cisco PIX Bill Davidsen
  -- strict thread matches above, loose matches on Subject: below --
2003-02-03 14:23 [TEST FIX] Re: SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, Franz Sirl
2003-02-03 17:11 ` J Sloan
2003-02-03 18:22   ` Jeff Garzik
2003-02-03 21:04 ` Bill Davidsen
     [not found] <Pine.LNX.3.96.1030203155651.28323A-100000@dstl.gov.uk>
2003-02-04  9:58 ` Tony Gale
2003-02-04 14:12   ` David Ford
2003-02-04 14:40   ` Bill Davidsen
2003-02-04 19:54 jjs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox