Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Aug 2010 20:03:33 +0000 (UTC)
From:      Andre Oppermann <andre@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r211313 - stable/7/sys/netinet
Message-ID:  <201008142003.o7EK3XW0037448@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andre
Date: Sat Aug 14 20:03:32 2010
New Revision: 211313
URL: http://svn.freebsd.org/changeset/base/211313

Log:
  MFC r210666:
  
    Fix a bug in syncache where the initial CWND for new incoming connections
    was limited to one segment under the faulty assumption of a retransmit.
    Due to this the opportunity to initialize the increased congestion window
    according to RFC3390 was missed.

Modified:
  stable/7/sys/netinet/tcp_syncache.c

Modified: stable/7/sys/netinet/tcp_syncache.c
==============================================================================
--- stable/7/sys/netinet/tcp_syncache.c	Sat Aug 14 19:36:48 2010	(r211312)
+++ stable/7/sys/netinet/tcp_syncache.c	Sat Aug 14 20:03:32 2010	(r211313)
@@ -821,8 +821,9 @@ syncache_socket(struct syncache *sc, str
 
 	/*
 	 * If the SYN,ACK was retransmitted, reset cwnd to 1 segment.
+	 * NB: sc_rxmits counts all SYN,ACK transmits, not just retransmits.
 	 */
-	if (sc->sc_rxmits)
+	if (sc->sc_rxmits > 1)
 		tp->snd_cwnd = tp->t_maxseg;
 	tcp_timer_activate(tp, TT_KEEP, tcp_keepinit);
 



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