]> git.kaiwu.me - nginx.git/commitdiff
Core: fixed error message on setsockopt(SO_REUSEPORT) failure.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 11 Jul 2017 17:06:52 +0000 (20:06 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 11 Jul 2017 17:06:52 +0000 (20:06 +0300)
The error is fatal when configuring a new socket, so the ", ignored" part
is not appropriate and was removed.

src/core/ngx_connection.c

index 046098f1aee90baf1091c488373e9cefc6065e70..9b7071d2a2ac7b06c92224018d2643cecc5334a6 100644 (file)
@@ -483,7 +483,7 @@ ngx_open_listening_sockets(ngx_cycle_t *cycle)
                     == -1)
                 {
                     ngx_log_error(NGX_LOG_EMERG, log, ngx_socket_errno,
-                                  "setsockopt(SO_REUSEPORT) %V failed, ignored",
+                                  "setsockopt(SO_REUSEPORT) %V failed",
                                   &ls[i].addr_text);
 
                     if (ngx_close_socket(s) == -1) {