mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
ip/ppp: lower echo timeout to 2 periods (10 seconds)
it usually never recovers...
This commit is contained in:
parent
8b19c4f273
commit
3d706f9621
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue