summaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-04-30 15:25:06 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-04-30 15:25:06 +0200
commitb33137b340565f5af7434b82ac21489ac3f15abd (patch)
treecf67173f30ebaec2788c9e7db4cc3432d7a42d89 /lib/multi.c
parentae5c2242af68066177ff58df4bf7f7be2791528c (diff)
downloadcurl-b33137b340565f5af7434b82ac21489ac3f15abd.tar.gz
http2: leave WAITPERFORM when conn is multiplexed
No need to wait for our "spot" like for pipelining
Diffstat (limited to 'lib/multi.c')
-rw-r--r--lib/multi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 1ba40c25a..4ec26ad4e 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -1437,9 +1437,10 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
case CURLM_STATE_WAITPERFORM:
/* Wait for our turn to PERFORM */
- if(!data->easy_conn->readchannel_inuse &&
- isHandleAtHead(data,
- data->easy_conn->recv_pipe)) {
+ if((!data->easy_conn->readchannel_inuse &&
+ isHandleAtHead(data,
+ data->easy_conn->recv_pipe)) ||
+ data->easy_conn->bits.multiplex) {
/* Grab the channel */
data->easy_conn->readchannel_inuse = TRUE;
multistate(data, CURLM_STATE_PERFORM);