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
This commit is contained in:
David Fifield 2022-09-22 17:16:53 -06:00
parent cbc50592d8
commit 8e5af50bdb

View file

@ -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.