code: plan9front

Download patch

ref: 23f34184d60b393579a4de20f03da7befc6ceafc
parent: 74c1f4730b548c3499e59ac0c2f2aadfcd7727c5
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jan 7 00:12:08 EST 2024

ip/ppp: increase echo timeout to 5 periods (25 seconds)

I get every hour a delay of the echo replies for as
long as 20 seconds causing reconnects.

It does recover however and sends all the replies
eventually.

--- a/sys/src/cmd/ip/ppp/ppp.h
+++ b/sys/src/cmd/ip/ppp/ppp.h
@@ -172,7 +172,7 @@
 
 	Period=		5*1000,	/* period of retransmit process (in ms) */
 	Timeout=	20,	/* xmit timeout (in Periods) */
-	Echotimeout=	2,	/* echo timeout (in Periods) */
+	Echotimeout=	5,	/* echo timeout (in Periods) */
 	Buflen=		4096,
 
 	MAX_STATES=	16,		/* van jacobson compression states */