cool.io 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +6 -1
- data/lib/cool.io/socket.rb +3 -1
- data/lib/cool.io/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 577adfdbed9f538597019a5d5775c157623a8097
|
4
|
+
data.tar.gz: 1492fec0410e4d99f4fe5e21b5ba770af39bc509
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c85ba43cf72f73f6394cdbb0eb149f0cf4cb2f4707035d9cbd77e211a2562028bb641aca4d56726d18898d8fd70e20ddaffd5192f46347aaf7b1b67a4d010373
|
7
|
+
data.tar.gz: e725741045547e4cf3baa1900b0a9b0298a1b210946cfeb84de161056d184e051e36e7bc73df246b966b58982526576500acdccaadf27b5950cfe5232eb85bac
|
data/CHANGES.md
CHANGED
data/lib/cool.io/socket.rb
CHANGED
@@ -137,6 +137,8 @@ module Coolio
|
|
137
137
|
|
138
138
|
private :preinitialize
|
139
139
|
|
140
|
+
PEERADDR_FAILED = ["?", 0, "name resolusion failed", "?"]
|
141
|
+
|
140
142
|
def initialize(socket)
|
141
143
|
unless socket.is_a?(::TCPSocket) or socket.is_a?(TCPConnectSocket)
|
142
144
|
raise TypeError, "socket must be a TCPSocket"
|
@@ -144,7 +146,7 @@ module Coolio
|
|
144
146
|
|
145
147
|
super
|
146
148
|
|
147
|
-
@address_family, @remote_port, @remote_host, @remote_addr = socket.peeraddr
|
149
|
+
@address_family, @remote_port, @remote_host, @remote_addr = (socket.peeraddr rescue PEERADDR_FAILED)
|
148
150
|
end
|
149
151
|
|
150
152
|
def peeraddr
|
data/lib/cool.io/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cool.io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Arcieri
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-08-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|