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
This commit is contained in:
Archie Cobbs 2003-11-18 20:43:23 +00:00
parent 0eb1430969
commit f6a1906569
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122890

View File

@ -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