- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for idleState (0.12 sec)
-
src/net/http/export_test.go
pool := noDialPool.http2clientConnPool pool.mu.Lock() defer pool.mu.Unlock() for k, ccs := range pool.conns { for _, cc := range ccs { if cc.idleState().canTakeNewRequest { ret = append(ret, k) } } } slices.Sort(ret) return ret } func (t *Transport) IdleConnCountForTesting(scheme, addr string) int { t.idleMu.Lock()
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/h2_bundle.go
// clientConnIdleState describes the suitability of a client // connection to initiate a new RoundTrip request. type http2clientConnIdleState struct { canTakeNewRequest bool } func (cc *http2ClientConn) idleState() http2clientConnIdleState { cc.mu.Lock() defer cc.mu.Unlock() return cc.idleStateLocked() } func (cc *http2ClientConn) idleStateLocked() (st http2clientConnIdleState) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 364.1K bytes - Viewed (0)