em-nodes 0.5 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/em-nodes/server.rb +6 -1
- data/lib/em-nodes/server/hello.rb +1 -1
- data/lib/em-nodes/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63bf7a640509b5d505dab58cd5e3b05a876cf3fe
|
4
|
+
data.tar.gz: a661ef9b96da2ebffe719f4d0b119854d200bcad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d05d3cd9556e979bccc301b61d4096c9fcd24a26699b8af2e7f21c3f501ace11b2356a49c698e43c33c10bdd296cddb7e545171bcb3e3e70df814b06f92814b4
|
7
|
+
data.tar.gz: 28c387f119f1da47370cabcf64904b9f4824a507e7244a3d969340dd44169859dde9d9d64c0dbdef887a07fc3ab930079bb8ad5e13b2a4966fb23208db20dde7
|
data/lib/em-nodes/server.rb
CHANGED
@@ -37,11 +37,16 @@ class EM::Nodes::Server < EM::Connection
|
|
37
37
|
self.comm_inactivity_timeout = inactivity_timeout if EM.reactor_running?
|
38
38
|
|
39
39
|
port, host = Socket.unpack_sockaddr_in(get_peername) rescue []
|
40
|
-
|
40
|
+
|
41
|
+
unless host
|
42
|
+
host = Socket.unpack_sockaddr_un(get_sockname) rescue nil
|
43
|
+
end
|
44
|
+
|
41
45
|
unless accept?(host, port)
|
42
46
|
unbind
|
43
47
|
return
|
44
48
|
end
|
49
|
+
|
45
50
|
self.data.host = host
|
46
51
|
self.data.port = port
|
47
52
|
|
data/lib/em-nodes/version.rb
CHANGED