(c net.Conn)
| 146 | } |
| 147 | |
| 148 | func (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 | |
| 157 | var workerChanCap = func() int { |
| 158 | // Use blocking workerChan if GOMAXPROCS=1. |