changed max scan requests to 128

This commit is contained in:
Nicholas Dyer 2022-12-22 09:00:39 -05:00
parent 07e6eec033
commit 16b263b3e2
No known key found for this signature in database
GPG Key ID: E4E6388793FA2105

View File

@ -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():
"""