aboutsummaryrefslogtreecommitdiff
path: root/workerpool.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-12-10 12:05:36 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-12-10 12:05:36 +0200
commit180e1040344eebc5349bd8636acd4030feaaad49 (patch)
tree806b04843f27c02d3f96bdf83d543f89793fa66c /workerpool.go
parentclarify on why 'Connection: close' response header is set only for non-http/1... (diff)
downloadfasthttp-180e1040344eebc5349bd8636acd4030feaaad49.tar.gz
fasthttp-180e1040344eebc5349bd8636acd4030feaaad49.tar.bz2
fasthttp-180e1040344eebc5349bd8636acd4030feaaad49.zip
Fixed misleading comments in workerpool
Diffstat (limited to 'workerpool.go')
-rw-r--r--workerpool.go4
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.