# HG changeset patch # User Maxim Dounin # Date 1526933487 -10800 # Node ID 66aa2c1e82e63a65831d062d3e7a94bca0090b7e # Parent ceab908790c4eb7cd01c40bd16581ef794222ca5 Core: silenced getsockopt(TCP_FASTOPEN) messages on FreeBSD. FreeBSD returns EINVAL when getsockopt(TCP_FASTOPEN) is called on a unix domain socket, resulting in "getsockopt(TCP_FASTOPEN) ... failed" messages during binary upgrade when unix domain listen sockets are present in the configuration. Added EINVAL to the list of ignored error codes. diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c --- a/src/core/ngx_connection.c +++ b/src/core/ngx_connection.c @@ -305,7 +305,9 @@ ngx_set_inherited_sockets(ngx_cycle_t *c { err = ngx_socket_errno; - if (err != NGX_EOPNOTSUPP && err != NGX_ENOPROTOOPT) { + if (err != NGX_EOPNOTSUPP && err != NGX_ENOPROTOOPT + && err != NGX_EINVAL) + { ngx_log_error(NGX_LOG_NOTICE, cycle->log, err, "getsockopt(TCP_FASTOPEN) %V failed, ignored", &ls[i].addr_text);