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