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.
This commit is contained in:
klzgrad 2018-12-02 22:56:10 -05:00
parent 40e8acb863
commit 8c0ccd2a12

View File

@ -939,7 +939,8 @@ void SpdySession::InitializeWithSocket(
connection_ = std::move(connection);
session_send_window_size_ = kDefaultInitialWindowSize;
session_send_window_size_ =
std::numeric_limits<int32_t>::max() - kDefaultInitialWindowSize;
session_recv_window_size_ = kDefaultInitialWindowSize;
spdy::SettingsMap::const_iterator it =