From a2b424cba204a7fcd94f30256dcc3a17e2444356 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Thu, 20 Feb 2025 18:19:52 -0800 Subject: [PATCH] increase max UDP packet batch size --- src/udp_collector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/udp_collector.cpp b/src/udp_collector.cpp index 8e0366e..1c4d463 100644 --- a/src/udp_collector.cpp +++ b/src/udp_collector.cpp @@ -76,8 +76,8 @@ struct UDPCollector final : public UDPManager::Search, if(!(ev&EV_READ)) return; - // handle up to 4 packets before going back to the reactor - for(unsigned i=0; i<4 && self->handle_one(); i++) {} + // bound number of packets handled before going back to the reactor + for(unsigned i=0; i<16 && self->handle_one(); i++) {} }catch(std::exception& e) { log_crit_printf(logio, "Ignoring unhandled exception in UDPManager::handle(): %s\n", e.what());