From: fgsfds Date: Mon, 5 Jun 2023 17:42:36 +0000 (+0000) Subject: master: increase enet_host_service() timeout X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=45395d68172f014b5eb33677db89e47b5555ed0d;p=d2df-sdl.git master: increase enet_host_service() timeout --- diff --git a/src/mastersrv/master.c b/src/mastersrv/master.c index 920d2c4..6573cc6 100644 --- a/src/mastersrv/master.c +++ b/src/mastersrv/master.c @@ -913,7 +913,7 @@ int main(int argc, char **argv) { enet_uint8 msgid = 0; ENetEvent event; while (running) { - while (enet_host_service(ms_host, &event, 10) > 0) { + while (enet_host_service(ms_host, &event, 500) > 0) { const time_t now = time(NULL); const bool filtered = !event.peer || (ms_spam_cap && spam_filter(event.peer, now));