From f3d4554e29909efbc0529409793dea5b1347bb24 Mon Sep 17 00:00:00 2001 From: glebius Date: Mon, 6 Sep 2004 19:53:58 +0000 Subject: [PATCH] Increase PPTP_MAX_TIMEOUT up to 3 seconds. 10 prooved too much for high packet loss links, and 1 second appeared to be too small for high latency links. If we will receive more complaints, we should make this parameter configurable. PR: kern/69536 Approved by: archie, julian (mentor) MFC after: 3 days --- sys/netgraph/ng_pptpgre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netgraph/ng_pptpgre.c b/sys/netgraph/ng_pptpgre.c index dcf312584432..62b17f5d9ea7 100644 --- a/sys/netgraph/ng_pptpgre.c +++ b/sys/netgraph/ng_pptpgre.c @@ -119,7 +119,7 @@ typedef u_int64_t pptptime_t; #define PPTP_XMIT_WIN 16 /* max xmit window */ #define PPTP_MIN_RTT (PPTP_TIME_SCALE / 10) /* 100 milliseconds */ #define PPTP_MIN_TIMEOUT (PPTP_TIME_SCALE / 83) /* 12 milliseconds */ -#define PPTP_MAX_TIMEOUT (1 * PPTP_TIME_SCALE) /* 1 second */ +#define PPTP_MAX_TIMEOUT (3 * PPTP_TIME_SCALE) /* 3 seconds */ /* When we recieve a packet, we wait to see if there's an outgoing packet we can piggy-back the ACK off of. These parameters determine the mimimum