From 8cbd80686e09fb74178d5474c4cac1412f646b88 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 30 Nov 2015 00:10:35 +0100 Subject: http2 push: set weight for new stream give the new stream the old one's stream_weight internally to avoid sending a PRIORITY frame unless asked for it --- lib/http2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/http2.c b/lib/http2.c index 246b64ac5..877328207 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -310,8 +310,10 @@ static CURL *duphandle(struct SessionHandle *data) (void)Curl_close(second); second = NULL; } - else + else { Curl_http2_setup_req(second); + second->state.stream_weight = data->state.stream_weight; + } } } return second; -- cgit v1.2.3