mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Better braces in if statement in TCP fastopen code.
git-svn-id: file:///svn/unbound/trunk@5160 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
ab6f1d0fc7
commit
2552a81b40
2 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
16 April 2019: Wouter
|
||||||
|
- Better braces in if statement in TCP fastopen code.
|
||||||
|
|
||||||
15 April 2019: Wouter
|
15 April 2019: Wouter
|
||||||
- Fix tls write event for read state change to re-call SSL_write and
|
- Fix tls write event for read state change to re-call SSL_write and
|
||||||
not resume the TLS handshake.
|
not resume the TLS handshake.
|
||||||
|
|
|
||||||
|
|
@ -851,13 +851,16 @@ create_tcp_accept_sock(struct addrinfo *addr, int v6only, int* noproto,
|
||||||
#ifdef ENOPROTOOPT
|
#ifdef ENOPROTOOPT
|
||||||
/* squelch ENOPROTOOPT: freebsd server mode with kernel support
|
/* squelch ENOPROTOOPT: freebsd server mode with kernel support
|
||||||
disabled, except when verbosity enabled for debugging */
|
disabled, except when verbosity enabled for debugging */
|
||||||
if(errno != ENOPROTOOPT || verbosity >= 3)
|
if(errno != ENOPROTOOPT || verbosity >= 3) {
|
||||||
#endif
|
#endif
|
||||||
if(errno == EPERM) {
|
if(errno == EPERM) {
|
||||||
log_warn("Setting TCP Fast Open as server failed: %s ; this could likely be because sysctl net.inet.tcp.fastopen.enabled, net.inet.tcp.fastopen.server_enable, or net.ipv4.tcp_fastopen is disabled", strerror(errno));
|
log_warn("Setting TCP Fast Open as server failed: %s ; this could likely be because sysctl net.inet.tcp.fastopen.enabled, net.inet.tcp.fastopen.server_enable, or net.ipv4.tcp_fastopen is disabled", strerror(errno));
|
||||||
} else {
|
} else {
|
||||||
log_err("Setting TCP Fast Open as server failed: %s", strerror(errno));
|
log_err("Setting TCP Fast Open as server failed: %s", strerror(errno));
|
||||||
}
|
}
|
||||||
|
#ifdef ENOPROTOOPT
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return s;
|
return s;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue