From 208c69cc0a9ed6cdc8deb37978912a42787bc14c Mon Sep 17 00:00:00 2001 From: igoogolx <27353191+igoogolx@users.noreply.github.com> Date: Sat, 6 Jul 2024 05:36:42 +0800 Subject: [PATCH] fix: the number of connections is too small --- internal/tunnel/statistic/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tunnel/statistic/manager.go b/internal/tunnel/statistic/manager.go index 9734067..f86fd2e 100644 --- a/internal/tunnel/statistic/manager.go +++ b/internal/tunnel/statistic/manager.go @@ -11,7 +11,7 @@ import ( var DefaultManager *Manager func init() { - cache, err := lru.NewWithEvict[string, tracker](128, func(key string, value tracker) { + cache, err := lru.NewWithEvict[string, tracker](256, func(key string, value tracker) { log.Infoln(log.FormatLog(log.ExecutorPrefix, "close connection on evicted: ")) err := value.Close() if err != nil {