gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 112/282: multi: fix outdated comment


From: gnunet
Subject: [gnurl] 112/282: multi: fix outdated comment
Date: Wed, 01 Apr 2020 14:29:37 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 4d1aa8d43b1983e5930e461b4ed1b305004395f7
Author: Jay Satiro <address@hidden>
AuthorDate: Sun Feb 9 03:15:13 2020 -0500

    multi: fix outdated comment
    
    - Do not say that conn->data is "cleared" by multi_done().
    
    If the connection is in use then multi_done assigns another easy handle
    still using the connection to conn->data, therefore in that case it is
    not cleared.
    
    Closes https://github.com/curl/curl/pull/4901
---
 lib/multi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/multi.c b/lib/multi.c
index 6c9d06b0b..37a37a4f0 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -730,8 +730,8 @@ CURLMcode curl_multi_remove_handle(struct Curl_multi *multi,
        we don't leave a half-baked one around */
     if(easy_owns_conn) {
 
-      /* multi_done() clears the conn->data field to lose the association
-         between the easy handle and the connection
+      /* multi_done() clears the association between the easy handle and the
+         connection.
 
          Note that this ignores the return code simply because there's
          nothing really useful to do with it anyway! */

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]