diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-02-06 02:26:25 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-02-09 19:50:52 -0800 |
commit | bf82641c8f8efdb0516730febfbb0b2498e1224e (patch) | |
tree | 510f54bb6c342b4059a6959837de63f2881f8957 /lib/unicorn.rb | |
parent | 55933a8ccccc7f6e657ce826fe3135ab8ce841aa (diff) | |
download | unicorn-bf82641c8f8efdb0516730febfbb0b2498e1224e.tar.gz |
Additionally, provide Socket#unicorn_addr which makes it easy to determine whether a given Socket matches one in the config.
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r-- | lib/unicorn.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 943ad99..a17ab2d 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -74,7 +74,7 @@ module Unicorn instance_variable_set("@#{key.to_s.downcase}", value) end - @socket = Socket.unicorn_tcp_server(@host, @port, 1024) + @socket = Socket.unicorn_server_new("#{@host}:#{@port}", 1024) end # Does the majority of the IO processing. It has been written in Ruby using |