Commit 42122c27 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Don't reprioritize stream if it is not in dependency tree

Normally stream is in dependency tree, but sometimes it isn't.  For
example, client does not put pushed reserved stream in dependency
tree.
parent 1348621d
......@@ -573,6 +573,10 @@ int nghttp2_session_reprioritize_stream
nghttp2_stream *dep_stream;
nghttp2_stream *root_stream;
if(!nghttp2_stream_in_dep_tree(stream)) {
return 0;
}
if(pri_spec->stream_id == stream->stream_id) {
return nghttp2_session_terminate_session_with_reason
(session, NGHTTP2_PROTOCOL_ERROR, "depend on itself");
......
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