bunny 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +10 -0
- data/lib/bunny/session.rb +2 -5
- data/lib/bunny/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 057bcd48a6c1234452c4e61915c28b55d5248f46
|
4
|
+
data.tar.gz: 6c28bc03055ce2c4b8a3b4d30488619b4ccc562d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68d2af85cca78d231f02e8833afffdfc11c6b1dbbba3e8110d352b20f0412613c194d3353afaa5646dd15026f59cd5bd4a3ddbf87c8b9915ec0c6304c8b0e965
|
7
|
+
data.tar.gz: 6fcdeea240c210a56a3c0727447d328ce85325dead5fae8067b9a58da7584be4f4156ba78befc92f505587d7dd264b9ca1a3d319794f507ec1aede68fde8c527
|
data/ChangeLog.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## Changes between Bunny 1.4.0 and 1.4.1
|
2
|
+
|
3
|
+
### Prevent Default Channel From Being Re-opened Twice on Recovery
|
4
|
+
|
5
|
+
Bunny's default channel (a relic from the `0.7.x` days when channels were not
|
6
|
+
even part of the API) is no longer recovered one time too many.
|
7
|
+
|
8
|
+
Contributed by Carl Chatfield.
|
9
|
+
|
10
|
+
|
1
11
|
## Changes between Bunny 1.3.0 and 1.4.0
|
2
12
|
|
3
13
|
### Channel#wait_for_confirms Returns Immediately If All Publishes Confirmed
|
data/lib/bunny/session.rb
CHANGED
@@ -258,7 +258,7 @@ module Bunny
|
|
258
258
|
@reader_loop = nil
|
259
259
|
self.start_reader_loop if threaded?
|
260
260
|
|
261
|
-
@default_channel = self.create_channel
|
261
|
+
@default_channel = self.create_channel unless @default_channel
|
262
262
|
rescue Exception => e
|
263
263
|
@status_mutex.synchronize { @status = :not_connected }
|
264
264
|
raise e
|
@@ -663,10 +663,7 @@ module Bunny
|
|
663
663
|
|
664
664
|
# @private
|
665
665
|
def recover_channels
|
666
|
-
|
667
|
-
# negotiation is completed, so make sure we do not try to open
|
668
|
-
# it twice. MK.
|
669
|
-
@channels.reject { |n, ch| ch == @default_channel }.each do |n, ch|
|
666
|
+
@channels.each do |n, ch|
|
670
667
|
ch.open
|
671
668
|
|
672
669
|
ch.recover_from_network_failure
|
data/lib/bunny/version.rb
CHANGED
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.4.
|
4
|
+
version: 1.4.1
|
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-
|
15
|
+
date: 2014-09-17 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: amq-protocol
|
@@ -308,3 +308,4 @@ test_files:
|
|
308
308
|
- spec/unit/concurrent/synchronized_sorted_set_spec.rb
|
309
309
|
- spec/unit/system_timer_spec.rb
|
310
310
|
- spec/unit/version_delivery_tag_spec.rb
|
311
|
+
has_rdoc: true
|