From 8f4e2d941f9d740ec193b7427f4f52d384997f96 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 16 Apr 2015 22:36:31 +0900 Subject: [PATCH] Revert accidental change in nghttp.cc --- src/nghttp.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nghttp.cc b/src/nghttp.cc index 3d513f4f..05bd22ac 100644 --- a/src/nghttp.cc +++ b/src/nghttp.cc @@ -2062,12 +2062,11 @@ int communicate( dep_stream_id = ANCHOR_ID_HIGH; } + nghttp2_priority_spec_init(&pri_spec, dep_stream_id, config.weight, 0); + for (auto req : requests) { for (int i = 0; i < config.multiply; ++i) { auto dep = std::make_shared(); - nghttp2_priority_spec_init(&pri_spec, dep_stream_id, - config.weight * (i + 1), 0); - client.add_request(std::get<0>(req), std::get<1>(req), std::get<2>(req), pri_spec, std::move(dep)); }