Mercurial > hg > nginx
diff src/core/ngx_connection.c @ 2560:a7443674e429
ignore EINVAL from setsockopt() on Solaris
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 12 Mar 2009 07:16:15 +0000 |
parents | 2e91aecb9e57 |
children | c352c419be85 |
line wrap: on
line diff
--- a/src/core/ngx_connection.c Thu Mar 12 07:12:25 2009 +0000 +++ b/src/core/ngx_connection.c Thu Mar 12 07:16:15 2009 +0000 @@ -782,12 +782,16 @@ { ngx_uint_t level; - if (err == NGX_ECONNRESET - && c->log_error == NGX_ERROR_IGNORE_ECONNRESET) - { + if (err == NGX_ECONNRESET && c->log_error == NGX_ERROR_IGNORE_ECONNRESET) { return 0; } +#if (NGX_SOLARIS) + if (err == NGX_EINVAL && c->log_error == NGX_ERROR_IGNORE_EINVAL) { + return 0; + } +#endif + if (err == 0 || err == NGX_ECONNRESET #if !(NGX_WIN32) @@ -803,6 +807,7 @@ { switch (c->log_error) { + case NGX_ERROR_IGNORE_EINVAL: case NGX_ERROR_IGNORE_ECONNRESET: case NGX_ERROR_INFO: level = NGX_LOG_INFO;