From owner-taylor-uucp@gnu.ai.mit.edu Wed Apr 22 07:14:10 1992
Status: RO
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil nil nil nil nil nil nil nil nil nil nil nil "^From:" nil nil nil])
Received: from fuug.fi by dolphin.funet.fi with SMTP id AA02004
  (5.65c/IDA-1.4.3 for ojala); Wed, 22 Apr 1992 07:14:07 +0300
Received: from mole.gnu.ai.mit.edu by fuug.fi with SMTP id AA03931
  (5.65c/IDA-1.4.4 for <taylor-uucp-list@fuug.fi>); Wed, 22 Apr 1992 07:11:13 +0300
Received: by mole.gnu.ai.mit.edu (5.65/4.0)
	id <AA07437@mole.gnu.ai.mit.edu>; Tue, 21 Apr 92 23:34:59 -0400
Received: from relay2.UU.NET by mole.gnu.ai.mit.edu (5.65/4.0) with SMTP
	id <AA07433@mole.gnu.ai.mit.edu>; Tue, 21 Apr 92 23:34:56 -0400
Received: from uunet.uu.net (via LOCALHOST.UU.NET) by relay2.UU.NET with SMTP 
	(5.61/UUNET-internet-primary) id AA18807; Tue, 21 Apr 92 23:01:18 -0400
Received: from airs.UUCP by uunet.uu.net with UUCP/RMAIL
	(queueing-rmail) id 230041.14697; Tue, 21 Apr 1992 23:00:41 EDT
Received: by comton.airs.com (5.57/AIRS1.0)
	id AA24202; Tue, 21 Apr 92 22:20:48 -0400
Message-Id: <9204220220.AA24202@comton.airs.com>
In-Reply-To: <9204211748.AA18479@ferret.ocunix.on.ca>; from "Chris Lewis" at Apr 21, 92 6:48 pm
X-Mailer: ELM [version 2.3 PL11]
From: ian@airs.com (Ian Lance Taylor)
To: clewis@ferret.ocunix.on.ca (Chris Lewis)
Cc: taylor-uucp@gnu.ai.mit.edu
Subject: Re: Retry
Date: Tue, 21 Apr 92 22:20:46 -0400

> One of my neighbors went down for 4 days, and my uucico got up to
> 27 retries.  And stopped trying.  The neighbor's machine came
> back up and started connecting successfully to me, but the retries
> didn't get reset, and hence my machine wouldn't call him back.

The 27 retries is controlled by CMAXRETRIES in policy.h.  However, a
successful call in should clear the number of retries.  Here is a
patch which should make it do that.

diff -c -r1.95 uucico.c
*** 1.95	1992/04/20 15:48:32
--- uucico.c	1992/04/22 02:18:16
***************
*** 1798,1815 ****
    sLocked_system = *qsys;
    fLocked_system = TRUE;
  
!   /* Set the system status.  We don't really care if we can't get the
!      earlier status.  We also don't want to kill the conversation just
!      because we can't output the .Status file, so we ignore any
!      errors.  */
!   if (! fsysdep_get_status (qsys, &sstat))
!     {
!       sstat.cretries = 0;
!       sstat.cwait = 0;
!     }
! 
    sstat.ttype = STATUS_TALKING;
    sstat.ilast = isysdep_time ((long *) NULL);
    (void) fsysdep_set_status (qsys, &sstat);
  
    /* Check the arguments of the remote system.  We accept -x# to set
--- 1798,1810 ----
    sLocked_system = *qsys;
    fLocked_system = TRUE;
  
!   /* Set the system status.  We don't care what the status was before.
!      We also don't want to kill the conversation just because we can't
!      output the .Status file, so we ignore any errors.  */
    sstat.ttype = STATUS_TALKING;
+   sstat.cretries = 0;
    sstat.ilast = isysdep_time ((long *) NULL);
+   sstat.cwait = 0;
    (void) fsysdep_set_status (qsys, &sstat);
  
    /* Check the arguments of the remote system.  We accept -x# to set

-- 
Ian Taylor                     ian@airs.com                    uunet!airs!ian
First person to identify this quote wins a free e-mail message:
``Do you make a grievance of weighing so many pounds only, instead of three
  hundred?  Then why fret about living so many years only, instead of more?''

