xebd / accel-ppp

High performance PPTP/L2TP/PPPoE/IPoE server for Linux
GNU General Public License v2.0
296 stars 109 forks source link

pptp/l2tp: echo failure improvements #23

Closed themiron closed 6 years ago

themiron commented 6 years ago

With echo-falure properly set, pptp channel might be disconnected on any fail number (i.e on first fail, never), due failed echo counter contains random value, not actual fail count. With incoming pptp echo request/l2tp hello there's no need to ask peer for replies in configured echo-interval, assuming the channel is working. So just postpone next request. It helps against false-positive echo failures with heavily loaded channels and/or peers.