diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-11-30 00:10:35 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-11-30 00:10:35 +0100 |
commit | 8cbd80686e09fb74178d5474c4cac1412f646b88 (patch) | |
tree | d85b6b7a828dda14f16c8668fa478ff228d2ac60 | |
parent | a14fa8f8ff19acd7a3fc2a46aeaea0108b8bcfa1 (diff) |
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
-rw-r--r-- | lib/http2.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |