Commit 7589c27a authored by David Fifield's avatar David Fifield
Browse files

Increase clientIDAddrMapCapacity to 98304.

Recent increases in usage have exhausted the capacity of the map.
tpo/anti-censorship/pluggable-transports/snowflake#40173
parent 90103c55
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.