mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
(On the patch)
- 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. git-svn-id: file:///svn/unbound/trunk@4841 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
3f2d186694
commit
611e37aa2d
2 changed files with 5 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -854,6 +854,7 @@ 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)) {
|
||||
if(verbosity >= 3)
|
||||
log_err_addr("accept rejected",
|
||||
"connection limit exceeded", addr, *addrlen);
|
||||
close(new_fd);
|
||||
|
|
|
|||
Loading…
Reference in a new issue