From: Daniel Stenberg Date: Sun, 29 Nov 2015 23:10:35 +0000 (+0100) Subject: http2 push: set weight for new stream X-Git-Tag: curl-7_46_0~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8cbd80686e09fb74178d5474c4cac1412f646b88;p=curl 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 --- 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;