gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 174/220: http2: when marked for closure and wanted


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 174/220: http2: when marked for closure and wanted to close == OK
Date: Thu, 12 Sep 2019 17:28:54 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit c1b6a384f9c8a91197c20adb49d43f30dc0e917d
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Aug 26 16:00:05 2019 +0200

    http2: when marked for closure and wanted to close == OK
    
    It could otherwise return an error even when closed correctly if GOAWAY
    had been received previously.
    
    Reported-by: Tom van der Woerdt
    Fixes #4267
    Closes #4268
---
 lib/http2.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/http2.c b/lib/http2.c
index 930e85165..31d2d698a 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -1559,6 +1559,11 @@ static ssize_t http2_recv(struct connectdata *conn, int 
sockindex,
   if(should_close_session(httpc)) {
     H2BUGF(infof(data,
                  "http2_recv: nothing to do in this session\n"));
+    if(conn->bits.close) {
+      /* already marked for closure, return OK and we're done */
+      *err = CURLE_OK;
+      return 0;
+    }
     *err = CURLE_HTTP2;
     return -1;
   }

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



reply via email to

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