aboutsummaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-06-02 10:34:27 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-06-24 23:44:42 +0200
commite9f0dd43bcbeb47e72e4f9d18c86d8e4b0b19739 (patch)
tree2c776bd994160b5facec8656dc1a308cffb9c721 /lib/multi.c
parentf65ab8864e2f9d580daf0ca48c972d6124a2ff3d (diff)
http2: init the pushed transfer properly
Diffstat (limited to 'lib/multi.c')
-rw-r--r--lib/multi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c
index a17af5a21..00520873c 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -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;
}