aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-11-30 00:10:35 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-11-30 00:10:35 +0100
commit8cbd80686e09fb74178d5474c4cac1412f646b88 (patch)
treed85b6b7a828dda14f16c8668fa478ff228d2ac60
parenta14fa8f8ff19acd7a3fc2a46aeaea0108b8bcfa1 (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.c4
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;