gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 121/125: http2: don't close connection when single


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 121/125: http2: don't close connection when single transfer is stopped
Date: Sun, 21 Jan 2018 23:42:56 +0100

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

ng0 pushed a commit to branch master
in repository gnurl.

commit a5e6d6ebcb8dc00f264c89c3e5376f042c372efb
Author: Kartik Mahajan <address@hidden>
AuthorDate: Thu Jan 18 22:28:59 2018 +0530

    http2: don't close connection when single transfer is stopped
    
    Fixes #2237
    Closes #2249
---
 lib/multi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/multi.c b/lib/multi.c
index e35b8fa19..43823cc93 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -581,7 +581,8 @@ static CURLcode multi_done(struct connectdata **connp,
       && !(conn->ntlm.state == NTLMSTATE_TYPE2 ||
            conn->proxyntlm.state == NTLMSTATE_TYPE2)
 #endif
-     ) || conn->bits.close || premature) {
+     ) || conn->bits.close
+       || (premature && !(conn->handler->flags & PROTOPT_STREAM))) {
     CURLcode res2 = Curl_disconnect(conn, premature); /* close connection */
 
     /* If we had an error already, make sure we return that one. But

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



reply via email to

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