bunny 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +7 -0
- data/lib/bunny/transport.rb +3 -5
- data/lib/bunny/version.rb +1 -1
- data/spec/issues/issue202_spec.rb +15 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5470f52754b5f2c08668870f6694233967b6840
|
4
|
+
data.tar.gz: 5aca1ad44f43e08cadc2ca79d4f123e553a2fdc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53a9ed275c8a59a5e573ea5fa240a5ff68f48f58fbb65f093159c1dd10e85bda74831b25873fa72fcb40d056bbbce5571723b93ac2ce132bf277e56f9db2d468
|
7
|
+
data.tar.gz: 9fe3172cae2c0de6f88d8369075096345f10a363000e1a56d65479f52c8b40956172e93e0593f4dd08a5127b771ce04909203bcdf5f71db195ddc7a03bbc7ebe
|
data/ChangeLog.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## Changes between Bunny 1.1.7 and 1.1.8
|
2
|
+
|
3
|
+
### Initial Socket Connection Again Raises Bunny::TCPConnectionFailed
|
4
|
+
|
5
|
+
Initial socket connection again raises `Bunny::TCPConnectionFailed`
|
6
|
+
on the connection origin thread.
|
7
|
+
|
1
8
|
## Changes between Bunny 1.1.6 and 1.1.7
|
2
9
|
|
3
10
|
### Heartbeat Sender Thread Leak
|
data/lib/bunny/transport.rb
CHANGED
@@ -240,11 +240,9 @@ module Bunny
|
|
240
240
|
|
241
241
|
def initialize_socket
|
242
242
|
begin
|
243
|
-
@socket = Bunny::
|
244
|
-
|
245
|
-
|
246
|
-
:socket_timeout => @connect_timeout)
|
247
|
-
end
|
243
|
+
@socket = Bunny::SocketImpl.open(@host, @port,
|
244
|
+
:keepalive => @opts[:keepalive],
|
245
|
+
:socket_timeout => @connect_timeout)
|
248
246
|
rescue StandardError, ClientTimeout => e
|
249
247
|
@status = :not_connected
|
250
248
|
raise Bunny::TCPConnectionFailed.new(e, self.hostname, self.port)
|
data/lib/bunny/version.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Bunny::Session do
|
4
|
+
context "with unreachable host" do
|
5
|
+
it "raises Bunny::TCPConnectionFailed" do
|
6
|
+
begin
|
7
|
+
conn = Bunny.new(:hostname => "192.192.192.192")
|
8
|
+
conn.start
|
9
|
+
|
10
|
+
fail "expected 192.192.192.192 to be unreachable"
|
11
|
+
rescue Bunny::TCPConnectionFailed => e
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bunny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Duncan
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-03-
|
15
|
+
date: 2014-03-27 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: amq-protocol
|
@@ -182,6 +182,7 @@ files:
|
|
182
182
|
- spec/higher_level_api/integration/with_channel_spec.rb
|
183
183
|
- spec/issues/issue100_spec.rb
|
184
184
|
- spec/issues/issue141_spec.rb
|
185
|
+
- spec/issues/issue202_spec.rb
|
185
186
|
- spec/issues/issue78_spec.rb
|
186
187
|
- spec/issues/issue83_spec.rb
|
187
188
|
- spec/issues/issue97_attachment.json
|
@@ -227,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
228
|
version: '0'
|
228
229
|
requirements: []
|
229
230
|
rubyforge_project:
|
230
|
-
rubygems_version: 2.
|
231
|
+
rubygems_version: 2.2.2
|
231
232
|
signing_key:
|
232
233
|
specification_version: 4
|
233
234
|
summary: Popular easy to use Ruby client for RabbitMQ
|
@@ -278,6 +279,7 @@ test_files:
|
|
278
279
|
- spec/higher_level_api/integration/with_channel_spec.rb
|
279
280
|
- spec/issues/issue100_spec.rb
|
280
281
|
- spec/issues/issue141_spec.rb
|
282
|
+
- spec/issues/issue202_spec.rb
|
281
283
|
- spec/issues/issue78_spec.rb
|
282
284
|
- spec/issues/issue83_spec.rb
|
283
285
|
- spec/issues/issue97_attachment.json
|