Update a comment to reflect the current reality.
SYN-cache entries live for abaut 12 seconds, not 45, when default setting are used. MFC after: 1 week Sponsored by: Netflix, Inc.
This commit is contained in:
parent
d81ca439e7
commit
34bb795ba1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343401
@ -154,7 +154,12 @@ static int syncookie_cmp(struct in_conninfo *inc, struct syncache_head *sch,
|
||||
|
||||
/*
|
||||
* Transmit the SYN,ACK fewer times than TCP_MAXRXTSHIFT specifies.
|
||||
* 3 retransmits corresponds to a timeout of 3 * (1 + 2 + 4 + 8) == 45 seconds,
|
||||
* 3 retransmits corresponds to a timeout with default values of
|
||||
* TCPTV_RTOBASE * ( 1 +
|
||||
* tcp_syn_backoff[1] +
|
||||
* tcp_syn_backoff[2] +
|
||||
* tcp_syn_backoff[3]) + 3 * tcp_rexmit_slop,
|
||||
* 3000 ms * (1 + 1 + 1 + 1) + 3 * 200 ms = 12300 ms,
|
||||
* the odds are that the user has given up attempting to connect by then.
|
||||
*/
|
||||
#define SYNCACHE_MAXREXMTS 3
|
||||
|
Loading…
Reference in New Issue
Block a user