mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
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.
This commit is contained in:
parent
d2fb99f9d5
commit
e140a6921f
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user