diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-05-08 10:43:36 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-05-18 08:57:18 +0200 |
commit | 02ec1ced9ba3bf70f6198b39c39b15fc80c97f09 (patch) | |
tree | 8fd01a81dcdca7045527a97db9af3a04e5c761f7 /lib/url.c | |
parent | 2ce2f03007cca9e3d8cc1b481ae7c4489c111741 (diff) | |
download | curl-02ec1ced9ba3bf70f6198b39c39b15fc80c97f09.tar.gz |
CURLMOPT_PIPELINE: bit 1 is for multiplexing
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -2782,7 +2782,7 @@ CURLcode Curl_disconnect(struct connectdata *conn, bool dead_connection) Curl_ssl_close(conn, FIRSTSOCKET); /* Indicate to all handles on the pipe that we're dead */ - if(Curl_multi_pipeline_enabled(data->multi)) { + if(Curl_pipeline_wanted(data->multi, CURLPIPE_ANY)) { signalPipeClose(conn->send_pipe, TRUE); signalPipeClose(conn->recv_pipe, TRUE); } @@ -2815,7 +2815,7 @@ static bool IsPipeliningPossible(const struct SessionHandle *handle, { /* If a HTTP protocol and pipelining is enabled */ if((conn->handler->protocol & PROTO_FAMILY_HTTP) && - Curl_multi_pipeline_enabled(handle->multi)) { + Curl_pipeline_wanted(handle->multi, CURLPIPE_ANY)) { if((handle->set.httpversion != CURL_HTTP_VERSION_1_0) && (handle->set.httpreq == HTTPREQ_GET || @@ -2830,11 +2830,6 @@ static bool IsPipeliningPossible(const struct SessionHandle *handle, return FALSE; } -bool Curl_isPipeliningEnabled(const struct SessionHandle *handle) -{ - return Curl_multi_pipeline_enabled(handle->multi); -} - int Curl_removeHandleFromPipeline(struct SessionHandle *handle, struct curl_llist *pipeline) { @@ -3786,9 +3781,9 @@ static struct connectdata *allocate_conn(struct SessionHandle *data) conn->response_header = NULL; #endif - if(Curl_multi_pipeline_enabled(data->multi) && - !conn->master_buffer) { - /* Allocate master_buffer to be used for pipelining */ + if(Curl_pipeline_wanted(data->multi, CURLPIPE_HTTP1) && + !conn->master_buffer) { + /* Allocate master_buffer to be used for HTTP/1 pipelining */ conn->master_buffer = calloc(BUFSIZE, sizeof (char)); if(!conn->master_buffer) goto error; |