fix: ssh tunnel检测导致死锁问题调整

This commit is contained in:
meilin.huang
2025-05-27 22:56:54 +08:00
parent e0c01d4561
commit bcaa4563ac
10 changed files with 93 additions and 28 deletions

View File

@@ -17,7 +17,7 @@ func init() {
if v.Stats().TotalConns == 0 {
continue // 连接池中没有连接,跳过
}
conn, err := v.Get(context.Background())
conn, err := v.Get(context.Background(), pool.WithNoUpdateLastActive())
if err != nil {
continue // 获取连接失败,跳过
}