mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 09:42:39 +08:00
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.
This commit is contained in:
parent
6ce439ebde
commit
4f9d83d6d7
@ -305,7 +305,9 @@ ngx_set_inherited_sockets(ngx_cycle_t *cycle)
|
||||
{
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user