aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorHiren Panchasara <hiren@FreeBSD.org>2016-01-26 16:33:38 +0000
committerHiren Panchasara <hiren@FreeBSD.org>2016-01-26 16:33:38 +0000
commit0645c6049ddf6277262a789c5ac232c951b8f853 (patch)
treee21550fb79b651a88c808c8a9298600938be9bcc /sys/netinet/tcp_output.c
parentfe68f570d4ddcd9ab3b3e776e4fc90bbc7d44699 (diff)
downloadsrc-0645c6049ddf6277262a789c5ac232c951b8f853.tar.gz
src-0645c6049ddf6277262a789c5ac232c951b8f853.zip
Persist timers TCPTV_PERSMIN and TCPTV_PERSMAX are hardcoded with 5 seconds and
60 seconds, respectively. Turn them into sysctls that can be tuned live. The default values of 5 seconds and 60 seconds have been retained. Submitted by: Jason Wolfe (j at nitrology dot com) Reviewed by: gnn, rrs, hiren, bz MFC after: 1 week Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D5024
Notes
Notes: svn path=/head/; revision=294840
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 55cf209cba44..cdfed3663bff 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -1626,7 +1626,7 @@ tcp_setpersist(struct tcpcb *tp)
* Start/restart persistance timer.
*/
TCPT_RANGESET(tt, t * tcp_backoff[tp->t_rxtshift],
- TCPTV_PERSMIN, TCPTV_PERSMAX);
+ tcp_persmin, tcp_persmax);
tcp_timer_activate(tp, TT_PERSIST, tt);
if (tp->t_rxtshift < TCP_MAXRXTSHIFT)
tp->t_rxtshift++;