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
This commit is contained in:
glebius 2004-09-06 19:53:58 +00:00
parent 0662081e91
commit f3d4554e29

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