MCPcopy Create free account
hub / github.com/cppla/moto / prewarmPool

Struct prewarmPool

controller/prewarm.go:26–33  ·  view source on GitHub ↗

映射地址到对应的预热池 prewarmPool 维护目标地址对应的一小撮预热 TCP 连接。

Source from the content-addressed store, hash-verified

24 prewarmMaintenancePeriod = 250 * time.Millisecond
25)
26
27type 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.
35type prewarmPool struct {
36 manager *prewarmManager

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected