change listen count, fix null

This commit is contained in:
Concedo 2024-02-16 16:01:24 +08:00
parent 19e27a9617
commit 7eccc5ffa6
2 changed files with 4 additions and 4 deletions

View file

@ -1073,7 +1073,7 @@ def RunServerMultiThreaded(addr, port, embedded_kailite = None, embedded_kcpp_do
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind((addr, port))
sock.listen(5)
sock.listen(12)
class Thread(threading.Thread):
def __init__(self, i):