CCID2: Initialize ssthresh to "infinity"
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.
Signed-off-by Andrea Bittau <[email protected]>
---
net/dccp/ccids/ccid2.c +1 -2
@@ -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 ;