On Fri, 1 Oct 1999, Brett Wallace wrote:
> My problem is that even though there is no traffic, diald will always
> redial to continue the time out countdown when the remote end
> disconnects the link. I have specified the two-way parameter, but still
> this behavior persists.
> Mar 2 11:54:46 wilma diald[618]: new state DISCONNECT action 0x8050958
> timeout 60
> Mar 2 11:54:46 wilma diald[618]: new state CLOSE action 0x80509dc
> timeout -1
> Mar 2 11:54:46 wilma diald[618]: Closing /dev/modem
> Mar 2 11:54:47 wilma diald[618]: --- tick --- state 9 block 0
> state_timeout -1
> Mar 2 11:54:47 wilma diald[618]: new state RETRY action 0x8050b48
> timeout -1
Hmmm... it goes straight from CLOSE to RETRY. RETRY does an
immediate retry as you might expect. Really it is used to
retry a failed dial. Now CLOSE goes to RETRY if no_redial_delay
is set to 1 which happens when the remote end drops a link
that diald considered UP. I _think_ (and bear in mind that
I've been down with flu for a couple of days and what I'm
doing hardly qualifies as thought right now :-( ), I _think_
that the intention is to bypass the redial delay which normally
happens as part of CLOSE - if the remote end is wrong and we
have outgoing packets we want to go ahead and redial fast.
Which leads me to suspect that the following patch should
fix the problem:
Index: fsm.c
===================================================================
RCS file: /u/CVS/diald/fsm.c,v
retrieving revision 1.16
diff -u -u -r1.16 fsm.c
--- fsm.c 1999/03/22 23:51:22 1.16
+++ fsm.c 1999/10/02 21:58:34
@@ -432,7 +432,7 @@
GOTO(STATE_DOWN); /* STATE_DOWN handles the link-up-request */
if (no_redial_delay == 1) {
no_redial_delay = 0;
- GOTO(STATE_RETRY);
+ GOTO(STATE_DOWN);
}
}
--
.----------------------------------------------------------------------.
| Mike Jagdis | Internet: [EMAIL PROTECTED] |
| 280, Silverdale Road, Earley, | Voice: +44 118 926 6996 |
| Reading RG6 7NU ENGLAND | Work: +44 118 989 0403 |
`----------------------------------------------------------------------'
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]