Mercurial > hg > nginx
comparison src/core/ngx_connection.c @ 7274:66aa2c1e82e6
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 21 May 2018 23:11:27 +0300 |
parents | fef61d26da39 |
children | d27aa9060c95 |
comparison
equal
deleted
inserted
replaced
7273:ceab908790c4 | 7274:66aa2c1e82e6 |
---|---|
303 (void *) &ls[i].fastopen, &olen) | 303 (void *) &ls[i].fastopen, &olen) |
304 == -1) | 304 == -1) |
305 { | 305 { |
306 err = ngx_socket_errno; | 306 err = ngx_socket_errno; |
307 | 307 |
308 if (err != NGX_EOPNOTSUPP && err != NGX_ENOPROTOOPT) { | 308 if (err != NGX_EOPNOTSUPP && err != NGX_ENOPROTOOPT |
309 && err != NGX_EINVAL) | |
310 { | |
309 ngx_log_error(NGX_LOG_NOTICE, cycle->log, err, | 311 ngx_log_error(NGX_LOG_NOTICE, cycle->log, err, |
310 "getsockopt(TCP_FASTOPEN) %V failed, ignored", | 312 "getsockopt(TCP_FASTOPEN) %V failed, ignored", |
311 &ls[i].addr_text); | 313 &ls[i].addr_text); |
312 } | 314 } |
313 | 315 |