zsh-users
 help / color / mirror / code / Atom feed
* Timed out
@ 1999-02-23 14:44 Mark Koenen
  1999-02-23 16:04 ` Dan Nelson
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mark Koenen @ 1999-02-23 14:44 UTC (permalink / raw)
  To: zsh-users

Hi,

When I don't use my Z-shell on a remote computer for a while, I get
disconnected (after about 15 minutes):

   markko @ kunhp1>Read from remote host kunhp1.cogsci.kun.nl: Connection reset by peer
   Connection to kunhp1.cogsci.kun.nl closed.


In ~/.zshrc I have:

   TMOUT=0

I use zsh-3.0.5. Anyone knows how to avoid this little nasty thing?

Thanx in advance,
Mark.


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

* Re: Timed out
  1999-02-23 14:44 Timed out Mark Koenen
@ 1999-02-23 16:04 ` Dan Nelson
  1999-02-23 20:56 ` Mircea Damian
  1999-02-27 14:24 ` Mark Koenen
  2 siblings, 0 replies; 7+ messages in thread
From: Dan Nelson @ 1999-02-23 16:04 UTC (permalink / raw)
  To: Mark Koenen; +Cc: zsh-users

In the last episode (Feb 23), Mark Koenen said:
> When I don't use my Z-shell on a remote computer for a while, I get
> disconnected (after about 15 minutes):
> 
> markko @ kunhp1>Read from remote host kunhp1.cogsci.kun.nl: Connection reset by peer
> Connection to kunhp1.cogsci.kun.nl closed.
> 
> In ~/.zshrc I have:
> 
>    TMOUT=0

That's not a zsh timeout logout.  You would have seen this if TMOUT was
the culprit:

  markko @ kunhp1>
  zsh: timeout
  Connection to kunhp1.cogsci.kun.nl closed.

You might want to try tracing the zsh process from another telnet
session (with truss/ktrace/trace/strace) and see exactly what happens
when the connection is dropped.

	-Dan


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

* Re: Timed out
  1999-02-23 14:44 Timed out Mark Koenen
  1999-02-23 16:04 ` Dan Nelson
@ 1999-02-23 20:56 ` Mircea Damian
  1999-02-27 14:24 ` Mark Koenen
  2 siblings, 0 replies; 7+ messages in thread
From: Mircea Damian @ 1999-02-23 20:56 UTC (permalink / raw)
  To: Mark Koenen; +Cc: zsh-users

On Tue, Feb 23, 1999 at 03:44:17PM +0100, Mark Koenen wrote:
> Hi,
> 
> When I don't use my Z-shell on a remote computer for a while, I get
> disconnected (after about 15 minutes):
> 
>    markko @ kunhp1>Read from remote host kunhp1.cogsci.kun.nl: Connection reset by peer
>    Connection to kunhp1.cogsci.kun.nl closed.
> 
> 
> In ~/.zshrc I have:
> 
>    TMOUT=0
> 
> I use zsh-3.0.5. Anyone knows how to avoid this little nasty thing?

Maybe is the problem with history reverse search and terminal interrupt
which 3.0.5 has.

-- 
Mircea Damian
Network Manager
dmircea@roedu.net, dmircea@lbi.ro, dmircea@kappa.ro
MD65-RIPE, MD2225, MD1-6BONE
Phone: +40-1-4115246


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

* Re: Timed out
  1999-02-23 14:44 Timed out Mark Koenen
  1999-02-23 16:04 ` Dan Nelson
  1999-02-23 20:56 ` Mircea Damian
@ 1999-02-27 14:24 ` Mark Koenen
  2 siblings, 0 replies; 7+ messages in thread
From: Mark Koenen @ 1999-02-27 14:24 UTC (permalink / raw)
  To: Mark Koenen; +Cc: zsh-users

I originally wrote:

>Hi,
>
>When I don't use my Z-shell on a remote computer for a while, I get
>disconnected (after about 15 minutes):

There were several suggestions for a possible source of the problem:
 - It could be an idle timeout set on the remote computer
 - Try setting
     TRAPALRM() { print "Someone sent me an alarm signal"; }
 -  try tracing the zsh process from another telnet session

Nothing helped until a friend suggested it would be the firewall
that I'm using that causes the problem. Indeed it did :-) The
firewall (I use IPCHAINS) closses connections when they're not
used for a while; a TCP connection will be closed after 15
minutes... To increase the timeout time call IPCHAINS with the
-S option. A piece of my  rc.firewall :

   # The default masquerading timeout is 15 minutes. This can be used
   # to set it to higher values.
   $IPCHAINS -M -S 7200 10 900

This sets the timeout to 2 hours; long enough to go to the toilet,
do the dishes, have a chat with the neighbour and returning to your
computer without having to login again... ;-)

Thanx for all the suggestions!

Mark.
--
__________________________________________________
  Mark Koenen_________________________IRC: TheNose
  ________________________Email: markko@sci.kun.nl
  ___________________WWW: http://www.gx.nl/markko/


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

* Re: Timed out
  1999-02-23 15:41 ` Mark Koenen
@ 1999-02-23 15:44   ` Peter Stephenson
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Stephenson @ 1999-02-23 15:44 UTC (permalink / raw)
  To: Zsh users list, Mark Koenen

Mark Koenen wrote:
> Yes, I checked, but he doesn't know of anything. When I use bash I don't
> have the problem... The problem occurs on each different network (work,
> university, provider) I can logon to. I use almost identical .zshrc's
> in the different environments.

Try setting
  TRAPALRM() { print "Someone sent me an alarm signal"; }
which should at least tell you if the the shell thinks it's getting a
timeout (and stop it).  This is the mechanism that TMOUT uses:  if it goes
on merrily as before, it must be something else.

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


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

* Re: Timed out
  1999-02-23 15:21 jr
@ 1999-02-23 15:41 ` Mark Koenen
  1999-02-23 15:44   ` Peter Stephenson
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Koenen @ 1999-02-23 15:41 UTC (permalink / raw)
  To: jr; +Cc: zsh-users

>>When I don't use my Z-shell on a remote computer for a while, I get
>>disconnected (after about 15 minutes):
>
>It could be an idle timeout set on the remote computer; have you checked
>with the sysadmin of the remote machine if this is the case?

Yes, I checked, but he doesn't know of anything. When I use bash I don't
have the problem... The problem occurs on each different network (work,
university, provider) I can logon to. I use almost identical .zshrc's
in the different environments.

>John Riddoch

Greetings!
Mark.


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

* Re: Timed out
@ 1999-02-23 15:21 jr
  1999-02-23 15:41 ` Mark Koenen
  0 siblings, 1 reply; 7+ messages in thread
From: jr @ 1999-02-23 15:21 UTC (permalink / raw)
  To: zsh-users

>When I don't use my Z-shell on a remote computer for a while, I get
>disconnected (after about 15 minutes):
>
>   markko @ kunhp1>Read from remote host kunhp1.cogsci.kun.nl: Connection 
reset by peer
>   Connection to kunhp1.cogsci.kun.nl closed.

It could be an idle timeout set on the remote computer; have you checked with 
the sysadmin of the remote machine if this is the case?

-- 
John Riddoch	Email: jr@scms.rgu.ac.uk	Telephone: (01224)262730
Room C4, School of Computer and Mathematical Science
Robert Gordon University, Aberdeen, AB25 1HG
I am Homer of Borg. Resistance is Fu... Ooooh! Donuts!


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

end of thread, other threads:[~1999-02-27 14:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-23 14:44 Timed out Mark Koenen
1999-02-23 16:04 ` Dan Nelson
1999-02-23 20:56 ` Mircea Damian
1999-02-27 14:24 ` Mark Koenen
1999-02-23 15:21 jr
1999-02-23 15:41 ` Mark Koenen
1999-02-23 15:44   ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).