about summary refs log tree commit homepage
path: root/lib/yahns/server.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2013-10-30 01:50:17 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-30 07:01:01 +0000
commit61f325506c699292bf6ec7982ab824bc375ca03f (patch)
tree2a3412f24e538966bcc07a3eb649de93591baeb6 /lib/yahns/server.rb
parent666d1936c72ae73b9f02d73000015135cdc4a716 (diff)
downloadyahns-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.rb4
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