Commit 3e72711e authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Cap 100 limit for remembering idle streams

parent f4bb8776
...@@ -1216,11 +1216,12 @@ int nghttp2_session_adjust_idle_stream(nghttp2_session *session) { ...@@ -1216,11 +1216,12 @@ int nghttp2_session_adjust_idle_stream(nghttp2_session *session) {
size_t max; size_t max;
int rv; int rv;
/* Make minimum number of idle streams 16, which is arbitrary chosen /* Make minimum number of idle streams 16, and maximum 100, which
number. */ are arbitrary chosen numbers. */
max = nghttp2_max(16, max = nghttp2_min(
nghttp2_min(session->local_settings.max_concurrent_streams, 100, nghttp2_max(
session->pending_local_max_concurrent_stream)); 16, nghttp2_min(session->local_settings.max_concurrent_streams,
session->pending_local_max_concurrent_stream)));
DEBUGF(fprintf(stderr, "stream: adjusting kept idle streams " DEBUGF(fprintf(stderr, "stream: adjusting kept idle streams "
"num_idle_streams=%zu, max=%zu\n", "num_idle_streams=%zu, max=%zu\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment