From 0bd7b00eb7636ec79cf4000fb9db79cab42deed9 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 12 Mar 2009 07:16:15 +0000 Subject: ignore EINVAL from setsockopt() on Solaris --- src/core/ngx_connection.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/core/ngx_connection.h') diff --git a/src/core/ngx_connection.h b/src/core/ngx_connection.h index d9b80f941..171078b23 100644 --- a/src/core/ngx_connection.h +++ b/src/core/ngx_connection.h @@ -69,10 +69,11 @@ struct ngx_listening_s { typedef enum { - NGX_ERROR_CRIT = 0, + NGX_ERROR_ALERT = 0, NGX_ERROR_ERR, NGX_ERROR_INFO, - NGX_ERROR_IGNORE_ECONNRESET + NGX_ERROR_IGNORE_ECONNRESET, + NGX_ERROR_IGNORE_EINVAL } ngx_connection_log_error_e; @@ -131,7 +132,7 @@ struct ngx_connection_s { unsigned buffered:8; - unsigned log_error:2; /* ngx_connection_log_error_e */ + unsigned log_error:3; /* ngx_connection_log_error_e */ unsigned single_connection:1; unsigned unexpected_eof:1; -- cgit