Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #262 from dre3k/master

Fix reconnect on unix-domain connection #261
  • Loading branch information...
commit 4d4de9d294df20c3e092e4f16abfc787935830d9 2 parents edaeafe + fa4d4ee
@tmm1 tmm1 authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/eventmachine.rb
View
6 lib/eventmachine.rb
@@ -761,7 +761,11 @@ def self.reconnect server, port, handler
#raise "still connected" if @conns.has_key?(handler.signature)
return handler if @conns.has_key?(handler.signature)
- s = connect_server server, port
+ s = if port
+ connect_server server, port
+ else
+ connect_unix_server server
+ end
handler.signature = s
@conns[s] = handler
block_given? and yield handler
Please sign in to comment.
Something went wrong with that request. Please try again.