nghttp: Advance next stream ID only when --idle-dep is used
This commit is contained in:
parent
5180eb93e5
commit
eb8138bfbd
|
@ -794,11 +794,12 @@ struct HttpClient {
|
|||
|
||||
dep_stream_id = stream_id;
|
||||
}
|
||||
}
|
||||
|
||||
rv = nghttp2_session_set_next_stream_id(session, ANCHOR_ID_LOWEST + 2);
|
||||
if (rv != 0) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
assert(settings_timerev == nullptr);
|
||||
settings_timerev = evtimer_new(evbase, settings_timeout_cb, this);
|
||||
|
|
Loading…
Reference in New Issue