From 8e5af50bdb43b2626832b022eeceee7ef4e3c953 Mon Sep 17 00:00:00 2001 From: David Fifield Date: Thu, 22 Sep 2022 17:16:53 -0600 Subject: [PATCH] Increase clientIDAddrMapCapacity to 98304. Recent increases in usage have exhausted the capacity of the map. https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40173 --- server/lib/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/http.go b/server/lib/http.go index 0aba81e..4bd4fa8 100644 --- a/server/lib/http.go +++ b/server/lib/http.go @@ -29,7 +29,7 @@ const clientMapTimeout = 1 * time.Minute // How big to make the map of ClientIDs to IP addresses. The map is used in // turbotunnelMode to store a reasonable IP address for a client session that // may outlive any single WebSocket connection. -const clientIDAddrMapCapacity = 10240 +const clientIDAddrMapCapacity = 98304 // How long to wait for ListenAndServe or ListenAndServeTLS to return an error // before deciding that it's not going to return.