mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 06:16:30 +03:00
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:
parent
40e8acb863
commit
8c0ccd2a12
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user