bunny 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bunny/session.rb +4 -1
- data/lib/bunny/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: 9e5fc526781ca58758094abdb97f80c73dbbd895
|
4
|
+
data.tar.gz: 776c3e93dd301774054da7ac4a99969559a4efdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 207adf5c0274c4277ab0c5a685188392d7f436b89bdec8101e98be513947ec44b8f560c8a0a190aad99de0787c5386b2757cc097f6de1453f41cdb9306f5ce77
|
7
|
+
data.tar.gz: 4c20d9682bd762032fd3ca4b975b2c64096166c1b4ed863a364d41648a94b52d59332f016d96ab3e0e3aeb93b210ce403e7196e9348b25f59ed29b64697a074a
|
data/lib/bunny/session.rb
CHANGED
@@ -146,6 +146,9 @@ module Bunny
|
|
146
146
|
@locale = @opts.fetch(:locale, DEFAULT_LOCALE)
|
147
147
|
# mutex for the channel id => channel hash
|
148
148
|
@channel_mutex = Mutex.new
|
149
|
+
# transport operations/continuations mutex. A workaround for
|
150
|
+
# the non-reentrant Ruby mutexes. MK.
|
151
|
+
@transport_mutex = Mutex.new
|
149
152
|
@channels = Hash.new
|
150
153
|
|
151
154
|
self.reset_continuations
|
@@ -336,7 +339,7 @@ module Bunny
|
|
336
339
|
n = ch.number
|
337
340
|
self.register_channel(ch)
|
338
341
|
|
339
|
-
@
|
342
|
+
@transport_mutex.synchronize do
|
340
343
|
@transport.send_frame(AMQ::Protocol::Channel::Open.encode(n, AMQ::Protocol::EMPTY_STRING))
|
341
344
|
end
|
342
345
|
@last_channel_open_ok = wait_on_continuations
|
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: 0.9.
|
4
|
+
version: 0.9.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: 2013-07-
|
15
|
+
date: 2013-07-17 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: amq-protocol
|