mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-09 22:03:15 -05:00
- Retry for interfaces with unused ports if possible.
This commit is contained in:
parent
48b40b305a
commit
b891fe113c
2 changed files with 4 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
12 November 2020: Wouter
|
||||
- Fix to connect() to UDP destinations, default turned on,
|
||||
this lowers vulnerability to ICMP side channels.
|
||||
- Retry for interfaces with unused ports if possible.
|
||||
|
||||
10 November 2020: Wouter
|
||||
- Fix #341: fixing a possible memory leak.
|
||||
|
|
|
|||
|
|
@ -1118,6 +1118,9 @@ select_ifport(struct outside_network* outnet, struct pending* pend,
|
|||
if(1) {
|
||||
/* if we connect() we cannot reuse fds for a port */
|
||||
if(pif->inuse >= pif->avail_total) {
|
||||
tries++;
|
||||
if(tries < MAX_PORT_RETRY)
|
||||
continue;
|
||||
log_err("failed to find an open port, drop msg");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue