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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af99e810da8cd3e0d21ef5bf92ffd4969b67606f
4
- data.tar.gz: ede2910bb6f158b05030bd1274631e156cf317cb
3
+ metadata.gz: 577adfdbed9f538597019a5d5775c157623a8097
4
+ data.tar.gz: 1492fec0410e4d99f4fe5e21b5ba770af39bc509
5
5
  SHA512:
6
- metadata.gz: 741a25e7e60819f2c42f033f26a3479af4c7034ac16349434a12a10b3b4b352d313a879679f63a339db8dd58259fd2b0ab81103ea4eec7bb0edf1ad855ea4870
7
- data.tar.gz: 7f08c2c6b3c8a88b63d21c77b3e33681277ed8b29486cade2b3767610c35b06e7946c9fa261eb12b43aaeb9f2e7dd332bce79fd0db9e5434f5883ebe598912ce
6
+ metadata.gz: c85ba43cf72f73f6394cdbb0eb149f0cf4cb2f4707035d9cbd77e211a2562028bb641aca4d56726d18898d8fd70e20ddaffd5192f46347aaf7b1b67a4d010373
7
+ data.tar.gz: e725741045547e4cf3baa1900b0a9b0298a1b210946cfeb84de161056d184e051e36e7bc73df246b966b58982526576500acdccaadf27b5950cfe5232eb85bac
data/CHANGES.md CHANGED
@@ -1,4 +1,9 @@
1
- 1.5.0
1
+ 1.5.1
2
+ -----
3
+
4
+ * Don't raise an exception when peername failed
5
+
6
+ 1.5.0
2
7
  -----
3
8
 
4
9
  * Update libev to 4.24
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Coolio
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
 
4
4
  def self.version
5
5
  VERSION
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.0
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-04-18 00:00:00.000000000 Z
12
+ date: 2017-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler