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:
Gleb Smirnoff 2004-09-06 19:53:58 +00:00
parent b2a3d5633a
commit 0306463aa0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134865

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