- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for connsPerHost (0.13 sec)
-
src/net/http/export_test.go
// Transport is tracking conns-per-host. // Increment connection count to account // for new persistConn created below. t.connsPerHostMu.Lock() if t.connsPerHost == nil { t.connsPerHost = make(map[connectMethodKey]int) } t.connsPerHost[key]++ t.connsPerHostMu.Unlock() } return t.tryPutIdleConn(&persistConn{ t: t, conn: c, // dummy
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:11:57 UTC 2024 - 8.7K bytes - Viewed (0) -
src/net/http/transport.go
defer t.connsPerHostMu.Unlock() if t.MaxConnsPerHost <= 0 { t.startDialConnForLocked(w) return } if n := t.connsPerHost[w.key]; n < t.MaxConnsPerHost { if t.connsPerHost == nil { t.connsPerHost = make(map[connectMethodKey]int) } t.connsPerHost[w.key] = n + 1 t.startDialConnForLocked(w) return } if t.connsPerHostWait == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 91K bytes - Viewed (0)