]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http2: Curl_read should not use the single buffer
authorDaniel Stenberg <daniel@haxx.se>
Mon, 4 May 2015 08:03:07 +0000 (10:03 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 May 2015 06:57:18 +0000 (08:57 +0200)
... as it does for pipelining when we're multiplexing, as we need the
different buffers to store incoming data correctly for all streams.

lib/sendf.c

index 879e082921c520a8838985eb76fc9796a1398c9e..71b2d6030cb564a67f4e90cf00e265f517680827 100644 (file)
@@ -551,7 +551,8 @@ CURLcode Curl_read(struct connectdata *conn, /* connection data */
   ssize_t nread = 0;
   size_t bytesfromsocket = 0;
   char *buffertofill = NULL;
-  bool pipelining = Curl_multi_pipeline_enabled(conn->data->multi);
+  bool pipelining = Curl_multi_pipeline_enabled(conn->data->multi) &&
+    !conn->bits.multiplex;
 
   /* Set 'num' to 0 or 1, depending on which socket that has been sent here.
      If it is the second socket, we set num to 1. Otherwise to 0. This lets