diff options
author | Eric Wong <e@80x24.org> | 2013-10-30 01:50:17 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-30 07:01:01 +0000 |
commit | 61f325506c699292bf6ec7982ab824bc375ca03f (patch) | |
tree | 2a3412f24e538966bcc07a3eb649de93591baeb6 /lib/yahns/server.rb | |
parent | 666d1936c72ae73b9f02d73000015135cdc4a716 (diff) | |
download | yahns-61f325506c699292bf6ec7982ab824bc375ca03f.tar.gz |
This saves about 200 bytes of unswappable kernel memory, so it might matter for systems with many connections when hijacking.
Diffstat (limited to 'lib/yahns/server.rb')
-rw-r--r-- | lib/yahns/server.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yahns/server.rb b/lib/yahns/server.rb index 462717b..4bd523f 100644 --- a/lib/yahns/server.rb +++ b/lib/yahns/server.rb @@ -344,10 +344,10 @@ class Yahns::Server # :nodoc: opts = sock_opts(l) ctx = opts[:yahns_app_ctx] qegg = ctx.qegg || @config.qeggs[:default] - q = queues[qegg] ||= qegg_vivify(qegg, fdmap) + ctx.queue = queues[qegg] ||= qegg_vivify(qegg, fdmap) # acceptors feed the the queues - l.spawn_acceptor(opts[:threads] || 1, @logger, ctx, q) + l.spawn_acceptor(opts[:threads] || 1, @logger, ctx) end fdmap end |