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

Method setState

server.go:2757–2761  ·  view source on GitHub ↗
(nc net.Conn, state ConnState)

Source from the content-addressed store, hash-verified

2755}
2756
2757func (s *Server) setState(nc net.Conn, state ConnState) {
2758 if hook := s.ConnState; hook != nil {
2759 hook(nc, state)
2760 }
2761}
2762
2763func hijackConnHandler(ctx *RequestCtx, r io.Reader, c net.Conn, s *Server, h HijackHandler) {
2764 hjc := s.acquireHijackConn(r, c)

Callers 3

ServeMethod · 0.95
ServeConnMethod · 0.95
serveConnCountedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected