(ctx *RequestCtx)
| 3060 | } |
| 3061 | |
| 3062 | func (s *Server) releaseCtx(ctx *RequestCtx) { |
| 3063 | if ctx.timeoutResponse != nil { |
| 3064 | // developer sanity-check |
| 3065 | panic("BUG: cannot release timed out RequestCtx") |
| 3066 | } |
| 3067 | |
| 3068 | ctx.reset() |
| 3069 | s.ctxPool.Put(ctx) |
| 3070 | } |
| 3071 | |
| 3072 | func (s *Server) getServerName() string { |
| 3073 | serverName := s.Name |
no test coverage detected