From bf82641c8f8efdb0516730febfbb0b2498e1224e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 6 Feb 2009 02:26:25 -0800 Subject: Internally supporting binding to UNIX domain sockets Additionally, provide Socket#unicorn_addr which makes it easy to determine whether a given Socket matches one in the config. --- lib/unicorn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/unicorn.rb') 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 -- cgit v1.2.3-24-ge0c7