diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-08-02 11:25:40 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-08-02 11:25:40 +0200 |
commit | ecd9b6b94c3ffe60e88f374acdf5b7e90522f4b5 (patch) | |
tree | c385fe613a0f41acdbd808c931d7ac517a8e6cf3 | |
parent | 35116a8302e6e2b33065cdae4f6651b2b2d8865d (diff) | |
download | curl-bagder/quiche-failf.tar.gz |
quiche: add failf() calls for two error casesbagder/quiche-failf
To aid debugging
-rw-r--r-- | lib/vquic/quiche.c | 8 |
1 files 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; |