Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2018 13:36:49 +0000 (UTC)
From:      Randall Stewart <rrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337455 - head/sys/netinet/tcp_stacks
Message-ID:  <201808081336.w78Dan3f078484@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rrs
Date: Wed Aug  8 13:36:49 2018
New Revision: 337455
URL: https://svnweb.freebsd.org/changeset/base/337455

Log:
  Fix a small bug in rack where it will
  end up sending the FIN twice.
  Sponsored by:	Netflix Inc.
  Differential Revision:	https://reviews.freebsd.org/D16604

Modified:
  head/sys/netinet/tcp_stacks/rack.c

Modified: head/sys/netinet/tcp_stacks/rack.c
==============================================================================
--- head/sys/netinet/tcp_stacks/rack.c	Wed Aug  8 12:08:46 2018	(r337454)
+++ head/sys/netinet/tcp_stacks/rack.c	Wed Aug  8 13:36:49 2018	(r337455)
@@ -7603,13 +7603,10 @@ dontupdate:
 	 * If our state indicates that FIN should be sent and we have not
 	 * yet done so, then we need to send.
 	 */
-	if (flags & TH_FIN) {
-		if ((tp->t_flags & TF_SENTFIN) ||
-		    (((tp->t_flags & TF_SENTFIN) == 0) &&
-		     (tp->snd_nxt == tp->snd_una))) {
-			pass = 11;
-			goto send;
-		}
+	if ((flags & TH_FIN) &&
+	    (tp->snd_nxt == tp->snd_una)) {
+		pass = 11;
+		goto send;
 	}
 	/*
 	 * No reason to send a segment, just return.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808081336.w78Dan3f078484>