[tor-commits] [snowflake/main] increase clientIDAddrMapCapacity
cohosh at torproject.org
cohosh at torproject.org
Tue Jan 18 19:34:10 UTC 2022
commit d2f6ea5417566966bedf8fef261199f0ebc360a2
Author: Shelikhoo <xiaokangwang at outlook.com>
Date: Thu Jan 6 20:40:21 2022 +0000
increase clientIDAddrMapCapacity
See also:
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40084
---
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 939a816..5f214a1 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 = 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.
More information about the tor-commits
mailing list