Send PRIORITY with current stream priority
This commit is contained in:
parent
6f28d44bef
commit
4b6885ce9f
|
@ -333,9 +333,14 @@ int nghttp2_session_add_frame(nghttp2_session *session,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case NGHTTP2_PRIORITY:
|
case NGHTTP2_PRIORITY: {
|
||||||
item->pri = -1;
|
nghttp2_stream *stream;
|
||||||
|
stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
|
||||||
|
if(stream) {
|
||||||
|
item->pri = stream->pri;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case NGHTTP2_RST_STREAM: {
|
case NGHTTP2_RST_STREAM: {
|
||||||
nghttp2_stream *stream;
|
nghttp2_stream *stream;
|
||||||
stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
|
stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
|
||||||
|
|
Loading…
Reference in New Issue