From 7328a76791475109c0698dddee208434684a8909 Mon Sep 17 00:00:00 2001 From: archie Date: Tue, 18 Nov 2003 20:43:23 +0000 Subject: Lower the maximum ACK timeout for GRE packets from 10 to 1 second. In practice it seems that in situations of high packet loss the ACK timeout seems to hit this maximum (perhaps inappropriately, but the estimation algorithm is not perfect, so apparently it happens). In any case, 10 seconds is way too high a value so lower to 1 second. MFC after: 3 days --- sys/netgraph/ng_pptpgre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netgraph') diff --git a/sys/netgraph/ng_pptpgre.c b/sys/netgraph/ng_pptpgre.c index 6966919..0542bb8 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 (10 * PPTP_TIME_SCALE) /* 10 seconds */ +#define PPTP_MAX_TIMEOUT (1 * PPTP_TIME_SCALE) /* 1 second */ /* 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 -- cgit v1.1