Skip to content

Commit

Permalink
Core: fixed error message on setsockopt(SO_REUSEPORT) failure.
Browse files Browse the repository at this point in the history
The error is fatal when configuring a new socket, so the ", ignored" part
is not appropriate and was removed.
  • Loading branch information
mdounin committed Jul 11, 2017
1 parent da165aa commit bedd9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ngx_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bedd9c5

Please sign in to comment.