Revert "multi_done: if multiplexed, make conn->data point to another transfer"
authorSeonah Moon <seonah1.moon@samsung.com>
Fri, 25 Sep 2020 08:06:03 +0000 (17:06 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Fri, 25 Sep 2020 08:06:03 +0000 (17:06 +0900)
This reverts commit 44b97d568351daa1741b591bf0c3ab754ad07060.

lib/multi.c
lib/url.c

index 3a393a1..6d819b4 100644 (file)
@@ -590,9 +590,6 @@ static CURLcode multi_done(struct Curl_easy *data,
   detach_connnection(data);
   if(CONN_INUSE(conn)) {
     /* Stop if still used. */
-    /* conn->data must not remain pointing to this transfer since it is going
-       away! Find another to own it! */
-    conn->data = conn->easyq.head->ptr;
     CONN_UNLOCK(data);
     DEBUGF(infof(data, "Connection still in use %zu, "
                  "no more multi_done now!\n",
index ff90739..a228a14 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1192,8 +1192,6 @@ ConnectionExists(struct Curl_easy *data,
         }
       }
 
-      DEBUGASSERT(!check->data || GOOD_EASY_HANDLE(check->data));
-
       if(!canmultiplex && check->data)
         /* this request can't be multiplexed but the checked connection is
            already in use so we skip it */