From c65cc3ca78e07c314b7614e9b76d0ef6a4f44620 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 13 Aug 2024 12:51:11 +0200 Subject: [PATCH] fixup! defer: add request and idle timeouts, limit on waiting queries Linking was failing if -Dsendmmsg=disabled --- daemon/udp_queue.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon/udp_queue.c b/daemon/udp_queue.c index 0e829d2d6..50638c098 100644 --- a/daemon/udp_queue.c +++ b/daemon/udp_queue.c @@ -25,6 +25,9 @@ void udp_queue_push(int fd, const struct sockaddr *sa, char *buf, size_t buf_len { abort(); } +void udp_queue_send_all(void) +{ +} #else /* LATER: it might be useful to have this configurable during runtime, @@ -87,7 +90,8 @@ static void udp_queue_send(int fd) } /** Send all queued packets. */ -void udp_queue_send_all(void) { +void udp_queue_send_all(void) +{ for (int i = 0; i < state.waiting_fds.len; ++i) { udp_queue_send(state.waiting_fds.at[i]); } -- 2.47.2