Sync from GitHub main #1

Open
nomad wants to merge 145 commits from sync/from-github into main
Showing only changes of commit 56c8984845 - Show all commits
+7 -1
View File
@@ -4,6 +4,7 @@ import json
import socket import socket
import time import time
import server_core
from server_core import PROTOCOL_VERSION, FalloutTogetherServer from server_core import PROTOCOL_VERSION, FalloutTogetherServer
@@ -70,7 +71,12 @@ def start_server() -> FalloutTogetherServer:
return server return server
def test_sixteen_clients_do_not_cross_broadcast_distant_cell_transforms(): def test_sixteen_clients_do_not_cross_broadcast_distant_cell_transforms(monkeypatch):
# All synthetic clients originate from localhost. Bypass only the per-IP
# connection-attempt throttle so this test measures gameplay capacity and
# interest filtering instead of the independent abuse-control policy.
monkeypatch.setattr(server_core, "MAX_CONNECT_ATTEMPTS", 64)
server = start_server() server = start_server()
clients: list[tuple[socket.socket, int]] = [] clients: list[tuple[socket.socket, int]] = []
try: try: