diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-06-01 14:20:57 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-06-24 23:44:42 +0200 |
commit | feea9263e9066768323a759ee178c144fccf5998 (patch) | |
tree | d17fc4c72cba65e48645abc5e762e0698d2a8602 /lib/multi.c | |
parent | ea7134ac874a66107e54ff93657ac565cf2ec4aa (diff) |
http2: setup the new pushed stream properly
Diffstat (limited to 'lib/multi.c')
-rw-r--r-- | lib/multi.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c index 33c03f299..a17af5a21 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -950,6 +950,21 @@ static bool multi_ischanged(struct Curl_multi *multi, bool clear) return retval; } +CURLMcode Curl_multi_add_perform(struct Curl_multi *multi, + struct SessionHandle *data, + struct connectdata *conn) +{ + CURLMcode rc; + + rc = curl_multi_add_handle(multi, data); + if(!rc) { + /* take this handle to the perform state right away */ + multistate(data, CURLM_STATE_PERFORM); + data->easy_conn = conn; + } + return rc; +} + static CURLMcode multi_runsingle(struct Curl_multi *multi, struct timeval now, struct SessionHandle *data) |