CURLMOPT_PIPELINE: bit 1 is for multiplexing
This commit is contained in:
@@ -494,7 +494,7 @@ static CURLcode readwrite_data(struct SessionHandle *data,
|
||||
/* We've stopped dealing with input, get out of the do-while loop */
|
||||
|
||||
if(nread > 0) {
|
||||
if(Curl_multi_pipeline_enabled(conn->data->multi)) {
|
||||
if(Curl_pipeline_wanted(conn->data->multi, CURLPIPE_HTTP1)) {
|
||||
infof(data,
|
||||
"Rewinding stream by : %zd"
|
||||
" bytes on url %s (zero-length body)\n",
|
||||
@@ -639,7 +639,7 @@ static CURLcode readwrite_data(struct SessionHandle *data,
|
||||
if(dataleft != 0) {
|
||||
infof(conn->data, "Leftovers after chunking: %zu bytes\n",
|
||||
dataleft);
|
||||
if(Curl_multi_pipeline_enabled(conn->data->multi)) {
|
||||
if(Curl_pipeline_wanted(conn->data->multi, CURLPIPE_HTTP1)) {
|
||||
/* only attempt the rewind if we truly are pipelining */
|
||||
infof(conn->data, "Rewinding %zu bytes\n",dataleft);
|
||||
read_rewind(conn, dataleft);
|
||||
@@ -662,7 +662,7 @@ static CURLcode readwrite_data(struct SessionHandle *data,
|
||||
|
||||
excess = (size_t)(k->bytecount + nread - k->maxdownload);
|
||||
if(excess > 0 && !k->ignorebody) {
|
||||
if(Curl_multi_pipeline_enabled(conn->data->multi)) {
|
||||
if(Curl_pipeline_wanted(conn->data->multi, CURLPIPE_HTTP1)) {
|
||||
/* The 'excess' amount below can't be more than BUFSIZE which
|
||||
always will fit in a size_t */
|
||||
infof(data,
|
||||
|
Reference in New Issue
Block a user