From 0fccf8bf5972297a93c0d58d7ad94b6a2724b5f5 Mon Sep 17 00:00:00 2001 From: Doug Fawley Date: Tue, 13 Nov 2018 16:12:37 -0800 Subject: [PATCH] transport: increase BDP limit to 16MB to improve performance for high latency networks (#2455) --- internal/transport/bdp_estimator.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/transport/bdp_estimator.go b/internal/transport/bdp_estimator.go index 63cd2627c..070680edb 100644 --- a/internal/transport/bdp_estimator.go +++ b/internal/transport/bdp_estimator.go @@ -24,9 +24,10 @@ import ( ) const ( - // bdpLimit is the maximum value the flow control windows - // will be increased to. - bdpLimit = (1 << 20) * 4 + // bdpLimit is the maximum value the flow control windows will be increased + // to. TCP typically limits this to 4MB, but some systems go up to 16MB. + // Since this is only a limit, it is safe to make it optimistic. + bdpLimit = (1 << 20) * 16 // alpha is a constant factor used to keep a moving average // of RTTs. alpha = 0.9