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

Method releaseCtx

server.go:3062–3070  ·  view source on GitHub ↗
(ctx *RequestCtx)

Source from the content-addressed store, hash-verified

3060}
3061
3062func (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
3072func (s *Server) getServerName() string {
3073 serverName := s.Name

Callers 3

serveConnCountedMethod · 0.95
hijackConnHandlerFunction · 0.80
acquireByteReaderFunction · 0.80

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected