From 16b263b3e2c4c7ddefed285eab76c4799a7f9f0d 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 --- pypong/networking/gui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pypong/networking/gui.py b/pypong/networking/gui.py index 563773c..00ba231 100644 --- a/pypong/networking/gui.py +++ b/pypong/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(): """