mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 10:14:35 +00:00
release dashmap memory (#1485)
This commit is contained in:
@@ -491,6 +491,9 @@ impl KcpProxyDst {
|
||||
);
|
||||
crate::defer! {
|
||||
proxy_entries.remove(&conn_id);
|
||||
if proxy_entries.capacity() - proxy_entries.len() > 16 {
|
||||
proxy_entries.shrink_to_fit();
|
||||
}
|
||||
}
|
||||
|
||||
let src_ip = src_socket.ip();
|
||||
|
||||
Reference in New Issue
Block a user