aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_pptpgre.c
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>2003-11-18 20:43:23 +0000
committerArchie Cobbs <archie@FreeBSD.org>2003-11-18 20:43:23 +0000
commitf6a19065697cacda6e3b1c5d92875eb2786cb945 (patch)
tree14e31fad59280ce522cc4db2c3a3f80eff9c91ed /sys/netgraph/ng_pptpgre.c
parent0eb143096940e4dd16f09215ab48480c1fce6552 (diff)
downloadsrc-f6a19065697cacda6e3b1c5d92875eb2786cb945.tar.gz
src-f6a19065697cacda6e3b1c5d92875eb2786cb945.zip
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
Notes
Notes: svn path=/head/; revision=122890
Diffstat (limited to 'sys/netgraph/ng_pptpgre.c')
-rw-r--r--sys/netgraph/ng_pptpgre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_pptpgre.c b/sys/netgraph/ng_pptpgre.c
index 6966919109b1..0542bb84df13 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