mirror of
https://github.com/curl/curl.git
synced 2026-08-05 14:06:14 +03:00
http2: init the pushed transfer properly
This commit is contained in:
parent
f65ab8864e
commit
e9f0dd43bc
3 changed files with 21 additions and 10 deletions
|
|
@ -958,9 +958,16 @@ CURLMcode Curl_multi_add_perform(struct Curl_multi *multi,
|
|||
|
||||
rc = curl_multi_add_handle(multi, data);
|
||||
if(!rc) {
|
||||
struct SingleRequest *k = &data->req;
|
||||
|
||||
/* pass in NULL for 'conn' here since we don't want to init the
|
||||
connection, only this transfer */
|
||||
Curl_init_do(data, NULL);
|
||||
|
||||
/* take this handle to the perform state right away */
|
||||
multistate(data, CURLM_STATE_PERFORM);
|
||||
data->easy_conn = conn;
|
||||
k->keepon |= KEEP_RECV; /* setup to receive! */
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue