nghttp: Adjust weight according to Firefox stable
This commit is contained in:
parent
4c381611a1
commit
8df2c357d9
|
@ -244,11 +244,11 @@ nghttp2_priority_spec resolve_dep(int res_type) {
|
||||||
case REQ_CSS:
|
case REQ_CSS:
|
||||||
case REQ_JS:
|
case REQ_JS:
|
||||||
anchor_id = anchors[ANCHOR_LEADERS].stream_id;
|
anchor_id = anchors[ANCHOR_LEADERS].stream_id;
|
||||||
weight = 2;
|
weight = 32;
|
||||||
break;
|
break;
|
||||||
case REQ_UNBLOCK_JS:
|
case REQ_UNBLOCK_JS:
|
||||||
anchor_id = anchors[ANCHOR_UNBLOCKED].stream_id;
|
anchor_id = anchors[ANCHOR_UNBLOCKED].stream_id;
|
||||||
weight = 2;
|
weight = 32;
|
||||||
break;
|
break;
|
||||||
case REQ_IMG:
|
case REQ_IMG:
|
||||||
anchor_id = anchors[ANCHOR_FOLLOWERS].stream_id;
|
anchor_id = anchors[ANCHOR_FOLLOWERS].stream_id;
|
||||||
|
@ -256,7 +256,7 @@ nghttp2_priority_spec resolve_dep(int res_type) {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
anchor_id = anchors[ANCHOR_FOLLOWERS].stream_id;
|
anchor_id = anchors[ANCHOR_FOLLOWERS].stream_id;
|
||||||
weight = 2;
|
weight = 32;
|
||||||
}
|
}
|
||||||
|
|
||||||
nghttp2_priority_spec_init(&pri_spec, anchor_id, weight, 0);
|
nghttp2_priority_spec_init(&pri_spec, anchor_id, weight, 0);
|
||||||
|
|
Loading…
Reference in New Issue