gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 91/219: Curl_disconnect: treat all CONNECT_ONLY con


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 91/219: Curl_disconnect: treat all CONNECT_ONLY connections as "dead"
Date: Wed, 22 May 2019 19:17:10 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit e06b8bdae6a6e552d7430c00853d18b9378eac29
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Apr 19 16:58:27 2019 +0200

    Curl_disconnect: treat all CONNECT_ONLY connections as "dead"
    
    Since the connection has been used by the "outside" we don't know the
    state of it anymore and curl should not use it anymore.
    
    Bug: https://curl.haxx.se/mail/lib-2019-04/0052.html
    
    Closes #3795
---
 lib/url.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/url.c b/lib/url.c
index 75de68f3c..8aefd1583 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -809,6 +809,10 @@ CURLcode Curl_disconnect(struct Curl_easy *data,
      for the connection! */
   conn->data = data;
 
+  if(conn->bits.connect_only)
+    /* treat the connection as dead in CONNECT_ONLY situations */
+    dead_connection = TRUE;
+
   if(conn->handler->disconnect)
     /* This is set if protocol-specific cleanups should be made */
     conn->handler->disconnect(conn, dead_connection);

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



reply via email to

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