- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SetKeepAlivesEnabled (0.16 sec)
-
src/net/http/serve_test.go
} // SetKeepAlivesEnabled should discard idle conns. ts.Config.SetKeepAlivesEnabled(false) waitCondition(t, 10*time.Millisecond, func(d time.Duration) bool { if conns := tr.IdleConnStrsForTesting(); len(conns) > 0 { if d > 0 { t.Logf("idle conns %v after SetKeepAlivesEnabled called = %q; waiting for empty", d, conns) } return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0) -
src/net/http/server.go
func (s *Server) shuttingDown() bool { return s.inShutdown.Load() } // SetKeepAlivesEnabled controls whether HTTP keep-alives are enabled. // By default, keep-alives are always enabled. Only very // resource-constrained environments or servers in the process of // shutting down should disable them. func (srv *Server) SetKeepAlivesEnabled(v bool) { if v { srv.disableKeepAlives.Store(false) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 123.4K bytes - Viewed (0)