diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2017-01-28 02:53:17 +0500 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2017-12-05 17:32:14 +0500 |
commit | 8d7b74ed52922b352a39993ed6856fccf826f25b (patch) | |
tree | ee0ccb57956a28faf53bacba14ce1232519b7fdf /accel-pppd/ctrl | |
parent | 528b83c33e5b03467fda5dbb1cb398bb4795fa7b (diff) | |
download | accel-ppp-8d7b74ed52922b352a39993ed6856fccf826f25b.tar.gz accel-ppp-8d7b74ed52922b352a39993ed6856fccf826f25b.zip |
pptp: implement adaptive pptp echo
With incoming pptp echo request there's no need to ask
peer for replies in configured echo-interval, so just
postpone it. Helps against false-positive echo failures
with heavily loaded channels and/or peers.
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/pptp/pptp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/pptp/pptp.c b/accel-pppd/ctrl/pptp/pptp.c index 03f6e980..fa48687d 100644 --- a/accel-pppd/ctrl/pptp/pptp.c +++ b/accel-pppd/ctrl/pptp/pptp.c @@ -413,6 +413,9 @@ static int pptp_echo_rqst(struct pptp_conn_t *conn) log_ppp_debug("send [PPTP Echo-Reply <Identifier %x>]\n", out_msg.identifier); } + if (conn->echo_timer.tpd) + triton_timer_mod(&conn->echo_timer, 0); + return post_msg(conn, &out_msg, sizeof(out_msg)); } |