gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 34/256: http2_recv: return error better on fatal h2


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 34/256: http2_recv: return error better on fatal h2 errors
Date: Fri, 06 Oct 2017 19:42:05 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 9e82d125e61d7306a76b05f33e56d23e9512814d
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Aug 18 16:29:55 2017 +0200

    http2_recv: return error better on fatal h2 errors
    
    Ref #1012
    Figured-out-by: Tatsuhiro Tsujikawa
---
 lib/http2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/http2.c b/lib/http2.c
index 0e5580133..8beaabf17 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -1582,7 +1582,7 @@ static ssize_t http2_recv(struct connectdata *conn, int 
sockindex,
       failf(data, "nghttp2_session_mem_recv() returned %d:%s\n",
             rv, nghttp2_strerror((int)rv));
       *err = CURLE_RECV_ERROR;
-      return 0;
+      return -1;
     }
     DEBUGF(infof(data, "nghttp2_session_mem_recv() returns %zd\n", rv));
     if(nread == rv) {
@@ -1600,7 +1600,7 @@ static ssize_t http2_recv(struct connectdata *conn, int 
sockindex,
     rv = h2_session_send(data, httpc->h2);
     if(rv != 0) {
       *err = CURLE_SEND_ERROR;
-      return 0;
+      return -1;
     }
 
     if(should_close_session(httpc)) {

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



reply via email to

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