ppp icon indicating copy to clipboard operation
ppp copied to clipboard

lcp-echo-adaptive does not set the lcp_echos_pending back to 0

Open electrofloat opened this issue 4 years ago • 1 comments

Even after I set the lcp-echo-adaptive option for pppd, I sometimes still have a disconnect when the line is saturated. I'm still investigating the issue, but looking at the code I just noticed, that in LcpSendEchoRequest if the lcp_echo_adaptive is true and there were some traffic in since last time, the function returns without setting the lcp_echos_pending back to 0.

This has the side effect of for example if someone has lcp-echo-failure set to 5, and it already failed 4 times, but then there were traffic so lcp-echo-adaptive kicked in for hours, then only after 1 failure the connection will be terminated, instead of 5 failures.

electrofloat avatar Nov 27 '21 19:11 electrofloat

@paulusmack: Have you seen this ticket?

Neustradamus avatar Mar 29 '22 00:03 Neustradamus

@electrofloat: @paulusmack has done a PR:

  • https://github.com/ppp-project/ppp/pull/376

What do you think?

Neustradamus avatar Dec 10 '22 08:12 Neustradamus

@electrofloat: @paulusmack has done a PR:

* [pppd: Fix spurious LCP echo failures with lcp-echo-adaptive option #376](https://github.com/ppp-project/ppp/pull/376)

What do you think?

Looks great, that will fix this issue.

electrofloat avatar Dec 10 '22 09:12 electrofloat