diff --git a/doc/Changelog b/doc/Changelog index 217f65024..21a4aee1b 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -11,6 +11,9 @@ - Patch to implement tcp-connection-limit from Jim Hague (Sinodun). This limits the number of simultaneous TCP client connections from a nominated netblock. + - make depend, yacc, lex, doc, headers. And log the limit exceeded + message only on high verbosity, so as to not spam the logs when + it is busy. 6 August 2018: Wouter - Fix for #4136: Fix to unconditionally call destroy in daemon.c. diff --git a/util/netevent.c b/util/netevent.c index f154b30a4..373538041 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -854,7 +854,8 @@ int comm_point_perform_accept(struct comm_point* c, if(c->tcp_conn_limit && c->type == comm_tcp_accept) { c->tcl_addr = tcl_addr_lookup(c->tcp_conn_limit, addr, *addrlen); if(!tcl_new_connection(c->tcl_addr)) { - log_err_addr("accept rejected", + if(verbosity >= 3) + log_err_addr("accept rejected", "connection limit exceeded", addr, *addrlen); close(new_fd); return -1;