Permalink
Browse files

allow connections to unix sockets, closes #199

  • Loading branch information...
1 parent e39f4a7 commit f2261e6b16ffe7fac9d0f074003ceb924140a0fd @igrigorik committed Jul 28, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/em-http/http_connection_options.rb
@@ -11,7 +11,10 @@ def initialize(uri, options)
if bind = options[:bind]
@bind = bind[:host] || '0.0.0.0'
- @bind_port = bind[:port] || 0
+
+ # Eventmachine will open a UNIX socket if bind :port
+ # is explicitly set to nil
+ @bind_port = bind[:port]
end
uri = uri.kind_of?(Addressable::URI) ? uri : Addressable::URI::parse(uri.to_s)

0 comments on commit f2261e6

Please sign in to comment.