aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-01-29 23:20:46 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-01-29 23:20:46 +0100
commitbe84524cc29d2591d0c172a11753ae890a2b4089 (patch)
tree7f7684e88ab0599a3303713e4aa563e0600f8465
parent803581d3e09136e43e7e3ef431302d160eea9df5 (diff)
http2_recv: log nghttp2 return codes for debugging purposes
-rw-r--r--lib/http2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http2.c b/lib/http2.c
index ba088b712..691e9a68c 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -227,6 +227,8 @@ static ssize_t http2_recv(struct connectdata *conn, int sockindex,
rc = nghttp2_session_recv(conn->proto.httpc.h2);
if(rc < 0) {
+ failf(conn->data, "nghttp2_session_recv() returned %d\n",
+ rc);
*err = CURLE_RECV_ERROR;
}
return 0;