ip/ppp: lower echo timeout to 2 periods (10 seconds)

it usually never recovers...
This commit is contained in:
cinap_lenrek 2024-01-06 19:32:53 +00:00
parent 8b19c4f273
commit 3d706f9621
2 changed files with 2 additions and 1 deletions

View file

@ -1524,7 +1524,7 @@ static void
pingtimer(PPP* ppp)
{
if(ppp->lcp->echotimeout == 0 || ppp->lcp->echoack)
ppp->lcp->echotimeout = (3*4*1000+Period-1)/Period;
ppp->lcp->echotimeout = Echotimeout;
else if(--(ppp->lcp->echotimeout) <= 0){
netlog("ppp: echo request timeout\n");
terminate(ppp, "echo timeout", 0);

View file

@ -172,6 +172,7 @@ enum {
Period= 5*1000, /* period of retransmit process (in ms) */
Timeout= 20, /* xmit timeout (in Periods) */
Echotimeout= 2, /* echo timeout (in Periods) */
Buflen= 4096,
MAX_STATES= 16, /* van jacobson compression states */