increase clientIDAddrMapCapacity

See also:
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40084
This commit is contained in:
Shelikhoo 2022-01-06 20:40:21 +00:00 committed by Cecylia Bocovich
parent 50646698e3
commit d2f6ea5417
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90

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 = 1024
const clientIDAddrMapCapacity = 10240
// How long to wait for ListenAndServe or ListenAndServeTLS to return an error
// before deciding that it's not going to return.