diff options
author | David Fifield <david@bamsoftware.com> | 2022-09-22 17:16:53 -0600 |
---|---|---|
committer | David Fifield <david@bamsoftware.com> | 2022-12-03 13:39:56 -0700 |
commit | 8e5af50bdb43b2626832b022eeceee7ef4e3c953 (patch) | |
tree | 836cc58b92c501ee4851e0eb306cbef091c8b1be /server | |
parent | cbc50592d83455ecaaa78850d90b0fdee22344a5 (diff) | |
download | snowflake-8e5af50bdb43b2626832b022eeceee7ef4e3c953.tar.gz snowflake-8e5af50bdb43b2626832b022eeceee7ef4e3c953.zip |
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
Diffstat (limited to 'server')
-rw-r--r-- | server/lib/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
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. |