increase max UDP packet batch size

This commit is contained in:
Michael Davidsaver
2025-06-11 15:32:47 -07:00
parent e30640a6f9
commit a2b424cba2
+2 -2
View File
@@ -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());