nghttpx: Use default connection window size with window size optimization
This commit is contained in:
parent
f5a2f1da25
commit
20c39fa843
|
@ -957,8 +957,12 @@ Http2Upstream::Http2Upstream(ClientHandler *handler)
|
|||
<< nghttp2_strerror(rv);
|
||||
}
|
||||
|
||||
auto window_size = faddr->alt_mode
|
||||
auto window_size =
|
||||
faddr->alt_mode
|
||||
? std::numeric_limits<int32_t>::max()
|
||||
: http2conf.upstream.optimize_window_size
|
||||
? std::min(http2conf.upstream.connection_window_size,
|
||||
NGHTTP2_INITIAL_CONNECTION_WINDOW_SIZE)
|
||||
: http2conf.upstream.connection_window_size;
|
||||
|
||||
rv = nghttp2_session_set_local_window_size(session_, NGHTTP2_FLAG_NONE, 0,
|
||||
|
|
Loading…
Reference in New Issue