DEADSOFTWARE

master: increase enet_host_service() timeout
authorfgsfds <pvt.fgsfds@gmail.com>
Mon, 5 Jun 2023 17:42:36 +0000 (17:42 +0000)
committerDmitry D. Chernov <blackdoomer@yandex.ru>
Tue, 6 Jun 2023 02:47:53 +0000 (12:47 +1000)
src/mastersrv/master.c

index 920d2c49b191e9498c1c7c1e36d00ecc78826372..6573cc62337cd76c634b40626bf940ee069b2775 100644 (file)
@@ -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));