From 8df2c357d911431fd53e4b03f8aaf150cde815b2 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 11 Aug 2016 21:59:34 +0900 Subject: [PATCH] nghttp: Adjust weight according to Firefox stable --- src/nghttp.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nghttp.cc b/src/nghttp.cc index a5510b0f..988d1b48 100644 --- a/src/nghttp.cc +++ b/src/nghttp.cc @@ -244,11 +244,11 @@ nghttp2_priority_spec resolve_dep(int res_type) { case REQ_CSS: case REQ_JS: anchor_id = anchors[ANCHOR_LEADERS].stream_id; - weight = 2; + weight = 32; break; case REQ_UNBLOCK_JS: anchor_id = anchors[ANCHOR_UNBLOCKED].stream_id; - weight = 2; + weight = 32; break; case REQ_IMG: anchor_id = anchors[ANCHOR_FOLLOWERS].stream_id; @@ -256,7 +256,7 @@ nghttp2_priority_spec resolve_dep(int res_type) { break; default: anchor_id = anchors[ANCHOR_FOLLOWERS].stream_id; - weight = 2; + weight = 32; } nghttp2_priority_spec_init(&pri_spec, anchor_id, weight, 0);