gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 42/220: quiche: add failf() calls for two error cas


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 42/220: quiche: add failf() calls for two error cases
Date: Thu, 12 Sep 2019 17:26:42 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit fc5b61baf0d42ae89e293208fc4cce600b501593
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Aug 2 11:25:40 2019 +0200

    quiche: add failf() calls for two error cases
    
    To aid debugging
    
    Closes #4181
---
 lib/vquic/quiche.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/lib/vquic/quiche.c b/lib/vquic/quiche.c
index f6c4ad42c..b7b7cc94e 100644
--- a/lib/vquic/quiche.c
+++ b/lib/vquic/quiche.c
@@ -125,15 +125,19 @@ static CURLcode process_ingress(struct connectdata *conn, 
int sockfd)
     if((recvd < 0) && ((errno == EAGAIN) || (errno == EWOULDBLOCK)))
       break;
 
-    if(recvd < 0)
+    if(recvd < 0) {
+      failf(conn->data, "quiche: recv() unexpectedly returned %d", recvd);
       return CURLE_RECV_ERROR;
+    }
 
     recvd = quiche_conn_recv(qs->conn, buf, recvd);
     if(recvd == QUICHE_ERR_DONE)
       break;
 
-    if(recvd < 0)
+    if(recvd < 0) {
+      failf(conn->data, "quiche_conn_recv() == %d", recvd);
       return CURLE_RECV_ERROR;
+    }
   } while(1);
 
   return CURLE_OK;

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



reply via email to

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