From 8c0ccd2a12672947aaefe40d1b8ac999c992afd8 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sun, 2 Dec 2018 22:56:10 -0500 Subject: [PATCH] h2: Use large connection window for HAProxy RFC 7540 6.9.2 requires the connection flow-control window be 65536 until a WINDOW_UPDATE frame is received. But HAProxy never sends a WINDOW_UPDATE to increase the connection window above 65536. Use a large value for the default window size. This is NOT compliant with RFC 7540, but this is the only way to support high-traffic scenarios without patching HAProxy. --- net/spdy/spdy_session.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc index 4f351c3d25..27a7823b3f 100644 --- a/net/spdy/spdy_session.cc +++ b/net/spdy/spdy_session.cc @@ -939,7 +939,8 @@ void SpdySession::InitializeWithSocket( connection_ = std::move(connection); - session_send_window_size_ = kDefaultInitialWindowSize; + session_send_window_size_ = + std::numeric_limits::max() - kDefaultInitialWindowSize; session_recv_window_size_ = kDefaultInitialWindowSize; spdy::SettingsMap::const_iterator it =