release dashmap memory (#1485)

This commit is contained in:
Sijie.Sun
2025-10-18 12:48:04 +08:00
committed by GitHub
parent 8f1786fa23
commit cc8f35787e
29 changed files with 339 additions and 187 deletions
+3
View File
@@ -333,6 +333,9 @@ impl QUICProxyDst {
let remote_addr = conn.remote_address();
defer!(
proxy_entries.remove(&remote_addr);
if proxy_entries.capacity() - proxy_entries.len() > 16 {
proxy_entries.shrink_to_fit();
}
);
let ret = timeout(
std::time::Duration::from_secs(10),