diff --git a/doc/Changelog b/doc/Changelog index 7bcef8c94..a84f73edf 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -8,6 +8,7 @@ and the dohclient test code has the -n option. - Fix python documentation warning on functions.rst inplace_cb_reply. - Fix dnstap test to wait for log timer to see if queries are logged. + - Log ip address when http session recv fails, eg. due to tls fail. 16 October 2020: Wouter - Fix that the out of order TCP processing does not limit the diff --git a/util/netevent.c b/util/netevent.c index e8aba4736..a40f44dd0 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -2449,8 +2449,11 @@ comm_point_http2_handle_read(int ATTR_UNUSED(fd), struct comm_point* c) if(ret) { if(ret != NGHTTP2_ERR_EOF && ret != NGHTTP2_ERR_CALLBACK_FAILURE) { - verbose(VERB_QUERY, "http2: session_recv failed, " - "error: %s", nghttp2_strerror(ret)); + char a[256]; + addr_to_str(&c->repinfo.addr, c->repinfo.addrlen, + a, sizeof(a)); + verbose(VERB_QUERY, "http2: session_recv from %s failed, " + "error: %s", a, nghttp2_strerror(ret)); } return 0; }