Skip to contentSkip to conversation

CCID2: Initialize ssthresh to "infinity"

PATCH In review Andrea Bittau 1 participant 1 message Jun 22, 2006 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 6/11 CCID2: Initialize ssthresh to "infinity"

Initialize the slow-start threshold to "infinity". This way, upon connection initiation, slow-start will be exited only upon a packet loss. This patch will allow connections to quickly gain speed.

---

net/dccp/ccids/ccid2.c +1 -2
index 72fdc26..c11201b 100644
@@ -724,9 +724,8 @@ static int ccid2_hc_tx_init(struct ccid 
 {
         struct ccid2_hc_tx_sock *hctx = ccid_priv(ccid);
 
-	/* XXX init variables with proper values */
 	hctx->ccid2hctx_cwnd	  = 1;
-	hctx->ccid2hctx_ssthresh  = 10;
+	hctx->ccid2hctx_ssthresh  = 666666; /* "infinite" [for a while] */
 	hctx->ccid2hctx_numdupack = 3;
 	hctx->ccid2hctx_seqbufc   = 0;