MCPcopy
hub / github.com/valyala/fasthttp / idleTimeout

Method idleTimeout

server.go:2292–2297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2290const DefaultMaxRequestBodySize = 4 * 1024 * 1024
2291
2292func (s *Server) idleTimeout() time.Duration {
2293 if s.IdleTimeout != 0 {
2294 return s.IdleTimeout
2295 }
2296 return s.ReadTimeout
2297}
2298
2299func (s *Server) serveConnCleanup(countConcurrency bool) {
2300 s.open.Add(-1)

Callers 1

serveConnCountedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected