mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-09 22:03:15 -05:00
- Fix #3582: Squelch address already in use log when reuseaddr option
causes same port to be used twice for tcp connections. git-svn-id: file:///svn/unbound/trunk@4559 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
4a3a6d1294
commit
5919273709
2 changed files with 8 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
5 March 2018: Wouter
|
||||
- Fix to check define of DSA for when openssl is without deprecated.
|
||||
- iana port update.
|
||||
- Fix #3582: Squelch address already in use log when reuseaddr option
|
||||
causes same port to be used twice for tcp connections.
|
||||
|
||||
27 February 2018: Wouter
|
||||
- Fixup contrib/fastrpz.patch so that it applies.
|
||||
|
|
|
|||
|
|
@ -299,6 +299,12 @@ udp_send_errno_needs_log(struct sockaddr* addr, socklen_t addrlen)
|
|||
# endif
|
||||
) && verbosity < VERB_DETAIL)
|
||||
return 0;
|
||||
# ifdef EADDRINUSE
|
||||
/* If SO_REUSEADDR is set, we could try to connect to the same server
|
||||
* from the same source port twice. */
|
||||
if(errno == EADDRINUSE && verbosity < VERB_DETAIL)
|
||||
return 0;
|
||||
# endif
|
||||
/* squelch errors where people deploy AAAA ::ffff:bla for
|
||||
* authority servers, which we try for intranets. */
|
||||
if(errno == EINVAL && addr_is_ip4mapped(
|
||||
|
|
|
|||
Loading…
Reference in a new issue