diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-12-10 12:05:36 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-12-10 12:05:36 +0200 |
commit | 180e1040344eebc5349bd8636acd4030feaaad49 (patch) | |
tree | 806b04843f27c02d3f96bdf83d543f89793fa66c /workerpool.go | |
parent | clarify on why 'Connection: close' response header is set only for non-http/1... (diff) | |
download | fasthttp-180e1040344eebc5349bd8636acd4030feaaad49.tar.gz fasthttp-180e1040344eebc5349bd8636acd4030feaaad49.tar.bz2 fasthttp-180e1040344eebc5349bd8636acd4030feaaad49.zip |
Fixed misleading comments in workerpool
Diffstat (limited to 'workerpool.go')
-rw-r--r-- | workerpool.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/workerpool.go b/workerpool.go index ef6ef18..9df4956 100644 --- a/workerpool.go +++ b/workerpool.go @@ -10,8 +10,10 @@ import ( ) // workerPool serves incoming connections via a pool of workers -// in FIFO order, i.e. the most recently stopped worker will serve the next +// in FILO order, i.e. the most recently stopped worker will serve the next // incoming connection. +// +// Such a scheme keeps CPU caches hot (in theory). type workerPool struct { // Function for serving server connections. // It must leave c unclosed. |