Date: Thu, 6 Oct 2016 16:00:48 +0000 (UTC) From: "Jonathan T. Looney" <jtl@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r306767 - head/sys/netinet Message-ID: <201610061600.u96G0mS1052871@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jtl Date: Thu Oct 6 16:00:48 2016 New Revision: 306767 URL: https://svnweb.freebsd.org/changeset/base/306767 Log: Correctly calculate snd_max in persist case. In the persist case, take the SYN and FIN flags into account when updating the sequence space sent. Reviewed by: gnn MFC after: 2 weeks Sponsored by: Juniper Networks, Netflix Differential Revision: https://reviews.freebsd.org/D7075 Tested by: Limelight, Netflix Modified: head/sys/netinet/tcp_output.c Modified: head/sys/netinet/tcp_output.c ============================================================================== --- head/sys/netinet/tcp_output.c Thu Oct 6 15:57:15 2016 (r306766) +++ head/sys/netinet/tcp_output.c Thu Oct 6 16:00:48 2016 (r306767) @@ -1519,7 +1519,7 @@ timer: tp->t_flags |= TF_SENTFIN; } if (SEQ_GT(tp->snd_nxt + xlen, tp->snd_max)) - tp->snd_max = tp->snd_nxt + len; + tp->snd_max = tp->snd_nxt + xlen; } if (error) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610061600.u96G0mS1052871>