Skip to content

Commit

Permalink
allow connections to unix sockets, closes #199
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Jul 28, 2012
1 parent e39f4a7 commit f2261e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/em-http/http_connection_options.rb
Expand Up @@ -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)
Expand Down

0 comments on commit f2261e6

Please sign in to comment.