aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-04-27 14:46:20 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-18 08:54:54 +0200
commit47caff7bdf8b2a47e6d7110eab0192981390ea21 (patch)
tree9a47448d9420b1d46761181abed48b90bbe99b6f
parentd6440d73667e11fec607d7560fca2cdde0b171a8 (diff)
http2: debug log when receiving unexpected stream_id
-rw-r--r--lib/http2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/http2.c b/lib/http2.c
index 4bc8fc57c..7a2f03207 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -300,6 +300,9 @@ static int on_data_chunk_recv(nghttp2_session *session, uint8_t flags,
"len = %u, stream = %x\n", len, stream_id));
if(stream_id != stream->stream_id) {
+ DEBUGF(infof(conn->data, "on_data_chunk_recv() "
+ "got stream %x, expected stream %x\n",
+ stream_id, stream->stream_id));
return 0;
}
@@ -363,6 +366,9 @@ static int on_stream_close(nghttp2_session *session, int32_t stream_id,
error_code));
if(stream_id != stream->stream_id) {
+ DEBUGF(infof(conn->data, "on_stream_close() "
+ "got stream %x, expected stream %x\n",
+ stream_id, stream->stream_id));
return 0;
}
@@ -435,6 +441,9 @@ static int on_header(nghttp2_session *session, const nghttp2_frame *frame,
}
if(frame->hd.stream_id != stream->stream_id) {
+ DEBUGF(infof(conn->data, "on_header() "
+ "got stream %x, expected stream %x\n",
+ frame->hd.stream_id, stream->stream_id));
return 0;
}
@@ -946,6 +955,7 @@ static ssize_t http2_send(struct connectdata *conn, int sockindex,
free(nva);
if(stream_id < 0) {
+ DEBUGF(infof(conn->data, "http2_send() send error\n"));
*err = CURLE_SEND_ERROR;
return -1;
}