mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-24 00:10:12 +00:00
Exclude num_idle_streams when counting active stream
This commit is contained in:
parent
a2486daee1
commit
7ae6e6b4c5
@ -5853,7 +5853,8 @@ int nghttp2_session_recv(nghttp2_session *session) {
|
||||
* reserved state.
|
||||
*/
|
||||
static size_t session_get_num_active_streams(nghttp2_session *session) {
|
||||
return nghttp2_map_size(&session->streams) - session->num_closed_streams;
|
||||
return nghttp2_map_size(&session->streams) - session->num_closed_streams -
|
||||
session->num_idle_streams;
|
||||
}
|
||||
|
||||
int nghttp2_session_want_read(nghttp2_session *session) {
|
||||
|
Loading…
Reference in New Issue
Block a user