From: Willy Tarreau Date: Thu, 15 Oct 2020 19:25:32 +0000 (+0200) Subject: MINOR: log: set the UDP receiver's I/O handler in the receiver X-Git-Tag: v2.3-dev7~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e140a6921f345b8d25a1fa05c35d64c8be102655;p=thirdparty%2Fhaproxy.git MINOR: log: set the UDP receiver's I/O handler in the receiver The I/O handler is syslog_fd_handler(), let's set it when creating the receivers. --- diff --git a/src/log.c b/src/log.c index 676d504e55..ffd8263329 100644 --- a/src/log.c +++ b/src/log.c @@ -3893,6 +3893,7 @@ int cfg_parse_log_forward(const char *file, int linenum, char **args, int kwm) list_for_each_entry(l, &bind_conf->listeners, by_bind) { /* the fact that the sockets are of type dgram is guaranteed by str2receiver() */ l->maxaccept = global.tune.maxaccept ? global.tune.maxaccept : 64; + l->rx.iocb = syslog_fd_handler; global.maxsock++; } cur_arg++;