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
This commit is contained in:
Daniel Stenberg 2015-11-30 00:10:35 +01:00
parent a14fa8f8ff
commit 8cbd80686e
1 changed files with 3 additions and 1 deletions

View File

@ -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;