From 671533de79ed6f18e8e9e78c2a8b17d26d4ad0d4 Mon Sep 17 00:00:00 2001 From: ndyer Date: Thu, 22 Dec 2022 09:00:39 -0500 Subject: [PATCH] changed max scan requests to 128 --- pynpong/networking/gui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pynpong/networking/gui.py b/pynpong/networking/gui.py index 500d63a..cdcea35 100644 --- a/pynpong/networking/gui.py +++ b/pynpong/networking/gui.py @@ -8,8 +8,9 @@ import pypong.networking.client as client global running # Don't allow any more than this number of threads when looking for games -# Can cripple a network at high numbers -MAX_SCAN_REQUESTS = 64 +# Can cripple a network at high numbers, 128 is recommended (can scan a /24 network in ~9 seconds on average) +# Higher range subnets will exponentially take more time to finish (/16 would take ~38.4 minutes at 128 req/s) +MAX_SCAN_REQUESTS = 128 def main(): """