mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-08-20 22:52:33 +02:00
- delay-close does not act if there are udp-wait queries, so that
it does not make a socketdrain DoS easier. git-svn-id: file:///svn/unbound/trunk@3059 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
30 January 2014: Wouter
|
||||
- delay-close does not act if there are udp-wait queries, so that
|
||||
it does not make a socketdrain DoS easier.
|
||||
|
||||
28 January 2014: Wouter
|
||||
- iana portlist updated.
|
||||
- iana portlist test updated so it does not touch the source
|
||||
|
||||
@@ -522,7 +522,11 @@ pending_udp_timer_cb(void *arg)
|
||||
fptr_ok(fptr_whitelist_pending_udp(p->cb));
|
||||
(void)(*p->cb)(p->pc->cp, p->cb_arg, NETEVENT_TIMEOUT, NULL);
|
||||
}
|
||||
if(outnet->delayclose) {
|
||||
/* if delayclose, keep port open for a longer time.
|
||||
* But if the udpwaitlist exists, then we are struggling to
|
||||
* keep up with demand for sockets, so do not wait, but service
|
||||
* the customer (customer service more important than portICMPs) */
|
||||
if(outnet->delayclose && !outnet->udp_wait_first) {
|
||||
p->cb = NULL;
|
||||
p->timer->callback = &pending_udp_timer_delay_cb;
|
||||
comm_timer_set(p->timer, &outnet->delay_tv);
|
||||
|
||||
Reference in New Issue
Block a user