summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timer.c
diff options
context:
space:
mode:
authorpkelsey <pkelsey@FreeBSD.org>2015-12-28 02:43:12 +0000
committerpkelsey <pkelsey@FreeBSD.org>2015-12-28 02:43:12 +0000
commitca800abb78cb6010f8fa04bd0ba6cb26e7722d92 (patch)
treed59fdf105fd7c8c6f25f22dda7cc1ca51c702fe8 /sys/netinet/tcp_timer.c
parenta2034803c3289c1600ea2ec5fa2e9dbed47bdc62 (diff)
downloadFreeBSD-src-ca800abb78cb6010f8fa04bd0ba6cb26e7722d92.zip
FreeBSD-src-ca800abb78cb6010f8fa04bd0ba6cb26e7722d92.tar.gz
MFC r292706:
Implementation of server-side TCP Fast Open (TFO) [RFC7413]. TFO is disabled by default in the kernel build. See the top comment in sys/netinet/tcp_fastopen.c for implementation particulars. Differential Revision: https://reviews.freebsd.org/D4350 Sponsored by: Verisign, Inc.
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r--sys/netinet/tcp_timer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c
index 3dc3a81..c66cb76 100644
--- a/sys/netinet/tcp_timer.c
+++ b/sys/netinet/tcp_timer.c
@@ -596,7 +596,8 @@ tcp_timer_rexmt(void * xtp)
} else
tp->t_flags &= ~TF_PREVVALID;
TCPSTAT_INC(tcps_rexmttimeo);
- if (tp->t_state == TCPS_SYN_SENT)
+ if ((tp->t_state == TCPS_SYN_SENT) ||
+ (tp->t_state == TCPS_SYN_RECEIVED))
rexmt = TCPTV_RTOBASE * tcp_syn_backoff[tp->t_rxtshift];
else
rexmt = TCP_REXMTVAL(tp) * tcp_backoff[tp->t_rxtshift];
OpenPOWER on IntegriCloud