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

Method Serve

workerpool.go:148–155  ·  view source on GitHub ↗
(c net.Conn)

Source from the content-addressed store, hash-verified

146}
147
148func (wp *workerPool) Serve(c net.Conn) bool {
149 ch := wp.getCh()
150 if ch == nil {
151 return false
152 }
153 ch.ch <- c
154 return true
155}
156
157var workerChanCap = func() int {
158 // Use blocking workerChan if GOMAXPROCS=1.

Callers 2

ServeMethod · 0.95

Calls 1

getChMethod · 0.95

Tested by 1