]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Log ip address when http session recv fails, eg. due to tls fail.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 19 Oct 2020 09:06:55 +0000 (11:06 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 19 Oct 2020 09:06:55 +0000 (11:06 +0200)
doc/Changelog
util/netevent.c

index 7bcef8c94f4e437a3cd0281df839cb1105e0d83f..a84f73edf3a293756b054382a565d01342db2759 100644 (file)
@@ -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
index e8aba473697d4f14d5cfac5424101ac53771949e..a40f44dd0045e42d2927183d1fd1842594710e6d 100644 (file)
@@ -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;
        }