From dc059a02a3d8d1f3f509ba31b7618cee001cba93 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Fri, 7 Sep 2018 00:27:45 +0300 Subject: libcurl: update to 7.61.1 --- libs/libcurl/src/pipeline.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/libcurl/src/pipeline.c') diff --git a/libs/libcurl/src/pipeline.c b/libs/libcurl/src/pipeline.c index 0689409205..8de3babd78 100644 --- a/libs/libcurl/src/pipeline.c +++ b/libs/libcurl/src/pipeline.c @@ -6,7 +6,7 @@ * \___|\___/|_| \_\_____| * * Copyright (C) 2013, Linus Nielsen Feltzing, - * Copyright (C) 2013 - 2017, Daniel Stenberg, , et al. + * Copyright (C) 2013 - 2018, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -110,8 +110,8 @@ CURLcode Curl_add_handle_to_pipeline(struct Curl_easy *handle, pipeline = &conn->send_pipe; result = addHandleToPipeline(handle, pipeline); - - if(pipeline == &conn->send_pipe && sendhead != conn->send_pipe.head) { + if((conn->bundle->multiuse == BUNDLE_PIPELINING) && + (pipeline == &conn->send_pipe && sendhead != conn->send_pipe.head)) { /* this is a new one as head, expire it */ Curl_pipeline_leave_write(conn); /* not in use yet */ Curl_expire(conn->send_pipe.head->ptr, 0, EXPIRE_RUN_NOW); -- cgit v1.2.3