[nginx] Core: fixed error message on setsockopt(SO_REUSEPORT) failure.

Maxim Dounin mdounin at mdounin.ru
Tue Oct 17 13:06:45 UTC 2017


details:   http://hg.nginx.org/nginx/rev/b56ddcce7513
branches:  stable-1.12
changeset: 7139:b56ddcce7513
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Tue Jul 11 20:06:52 2017 +0300
description:
Core: fixed error message on setsockopt(SO_REUSEPORT) failure.

The error is fatal when configuring a new socket, so the ", ignored" part
is not appropriate and was removed.

diffstat:

 src/core/ngx_connection.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c
--- a/src/core/ngx_connection.c
+++ b/src/core/ngx_connection.c
@@ -483,7 +483,7 @@ ngx_open_listening_sockets(ngx_cycle_t *
                     == -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) {


More information about the nginx-devel mailing list