about summary refs log tree commit homepage
path: root/lib/unicorn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-03-25 01:52:09 -0700
committerEric Wong <normalperson@yhbt.net>2009-03-25 16:13:54 -0700
commit1bf10b3a73509f3fc72fb7f267e767c0e2fa9376 (patch)
treead5fd7cf9e7ace00c3526842036d3b0345486a9e /lib/unicorn.rb
parent32b6e838c28b7948811a6470d8c0a49d5767ec69 (diff)
downloadunicorn-1bf10b3a73509f3fc72fb7f267e767c0e2fa9376.tar.gz
bind_listen takes a hash as its second parameter now, allowing
the addition of :sndbuf and :rcvbuf options to specify the size
of the buffers in bytes.  These correspond to the SO_SNDBUF and
SO_RCVBUF options via setsockopt(2) respectively.

This also adds support for per-listener backlogs to be used.

However, this is only an internal API change and the changes
have not yet been exposed to the user via Unicorn::Configurator,
yet.

Also add a bunch of SocketHelper tests
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r--lib/unicorn.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index eefbfc1..e36cb1e 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -135,7 +135,7 @@ module Unicorn
     def listen(address)
       return if String === address && listener_names.include?(address)
 
-      if io = bind_listen(address, @backlog)
+      if io = bind_listen(address, { :backlog => @backlog })
         if Socket == io.class
           @io_purgatory << io
           io = server_cast(io)