Changeset 7272:fa0e093b64d7 in nginx


Ignore:
Timestamp:
05/08/18 16:35:56 (22 months ago)
Author:
Vladimir Homutov <vl@…>
Branch:
default
Phase:
public
Message:

Syslog: re-open syslog udp socket on send error (ticket #1477).

Previously, only unix domain sockets were reopened to tolerate cases when
local syslog server was restarted. It makes sense to treat other cases
(for example, local IP address changes) similarly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/core/ngx_syslog.c

    r6474 r7272  
    290290    }
    291291
    292 #if (NGX_HAVE_UNIX_DOMAIN)
    293 
    294     if (n == NGX_ERROR && peer->server.sockaddr->sa_family == AF_UNIX) {
     292    if (n == NGX_ERROR) {
    295293
    296294        if (ngx_close_socket(peer->conn.fd) == -1) {
     
    302300    }
    303301
    304 #endif
    305 
    306302    return n;
    307303}
Note: See TracChangeset for help on using the changeset viewer.