映射地址到对应的预热池 prewarmPool 维护目标地址对应的一小撮预热 TCP 连接。
| 24 | prewarmMaintenancePeriod = 250 * time.Millisecond |
| 25 | ) |
| 26 | |
| 27 | type idlePrewarmConn struct { |
| 28 | conn net.Conn |
| 29 | idleSince time.Time |
| 30 | } |
| 31 | |
| 32 | // prewarmPool maintains a bounded number of short-lived idle connections for |
| 33 | // one target. A single reconciler owns replenishment decisions, while warming |
| 34 | // tracks the small, bounded number of concurrent dials. |
| 35 | type prewarmPool struct { |
| 36 | manager *prewarmManager |
nothing calls this directly
no outgoing calls
no test coverage detected