amqp 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +9 -0
- data/lib/amqp/channel.rb +2 -26
- data/lib/amqp/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: 049c0e5691b55cf219463258b33dd9896f8559df
|
4
|
+
data.tar.gz: 3835547a5a939ec136d700a8eba2ad923f5e42da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2526da50e63654e0784ad5640bdf634349c15973fb8b4edb336efc92e4082a324969392498128bfe05ed281ac4bbacaf0ea456af5ddd1578040b36c6f4ad013
|
7
|
+
data.tar.gz: efb8a195aa26f81f77b1d913f26c131ab0cf0a5bbb8edbc992d14d324578a44b08109af505ed3dae7ea1b38e0fbcb70300d79b6a1bd0c39321ba81f05edd0346
|
data/ChangeLog.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## Changes Between 1.1.6 and 1.1.7
|
2
|
+
|
3
|
+
### Automatic Recovery Fix
|
4
|
+
|
5
|
+
Automatic connection recovery now correctly recovers bindings again.
|
6
|
+
|
7
|
+
Contributed by Devin Christensen.
|
8
|
+
|
9
|
+
|
1
10
|
## Changes Between 1.1.5 and 1.1.6
|
2
11
|
|
3
12
|
### 65535 Channels Per Connection
|
data/lib/amqp/channel.rb
CHANGED
@@ -191,8 +191,7 @@ module AMQP
|
|
191
191
|
# connection (accessible via {AMQP.connection}) will be used.
|
192
192
|
# @param [Integer] id Channel id. Must not be greater than max channel id client and broker
|
193
193
|
# negotiated on during connection setup. Almost always the right thing to do
|
194
|
-
# is to let AMQP gem pick channel identifier for you.
|
195
|
-
# channel id, use {AMQP::Channel.next_channel_id} (it is thread-safe).
|
194
|
+
# is to let AMQP gem pick channel identifier for you.
|
196
195
|
# @param [Hash] options A hash of options
|
197
196
|
#
|
198
197
|
# @example Instantiating a channel for default connection (accessible as AMQP.connection)
|
@@ -215,7 +214,7 @@ module AMQP
|
|
215
214
|
# @example Instantiating a channel with a :prefetch option
|
216
215
|
#
|
217
216
|
# AMQP.connect do |connection|
|
218
|
-
# AMQP::Channel.new(connection,
|
217
|
+
# AMQP::Channel.new(connection, :prefetch => 5) do |channel, open_ok|
|
219
218
|
# # ...
|
220
219
|
# end
|
221
220
|
# end
|
@@ -1178,12 +1177,6 @@ module AMQP
|
|
1178
1177
|
@channel_is_open_deferrable = AMQP::Deferrable.new
|
1179
1178
|
end
|
1180
1179
|
|
1181
|
-
# @return [Boolean] true if this channel uses automatic recovery mode
|
1182
|
-
def auto_recovering?
|
1183
|
-
@auto_recovery
|
1184
|
-
end # auto_recovering?
|
1185
|
-
|
1186
|
-
|
1187
1180
|
# @return [Hash<String, Consumer>]
|
1188
1181
|
def consumers
|
1189
1182
|
@consumers
|
@@ -1213,8 +1206,6 @@ module AMQP
|
|
1213
1206
|
@mutex.synchronize(&block)
|
1214
1207
|
end
|
1215
1208
|
|
1216
|
-
|
1217
|
-
|
1218
1209
|
# @group QoS and flow handling
|
1219
1210
|
|
1220
1211
|
# Requests a specific quality of service. The QoS can be specified for the current channel
|
@@ -1282,21 +1273,6 @@ module AMQP
|
|
1282
1273
|
@exchanges.each { |name, e| e.run_after_recovery_callbacks }
|
1283
1274
|
end
|
1284
1275
|
|
1285
|
-
|
1286
|
-
# Called by associated connection object when AMQP connection has been re-established
|
1287
|
-
# (for example, after a network failure).
|
1288
|
-
#
|
1289
|
-
# @api plugin
|
1290
|
-
def auto_recover
|
1291
|
-
return unless auto_recovering?
|
1292
|
-
|
1293
|
-
self.open do
|
1294
|
-
# exchanges must be recovered first because queue recovery includes recovery of bindings. MK.
|
1295
|
-
@exchanges.each { |name, e| e.auto_recover }
|
1296
|
-
@queues.each { |name, q| q.auto_recover }
|
1297
|
-
end
|
1298
|
-
end # auto_recover
|
1299
|
-
|
1300
1276
|
# @endgroup
|
1301
1277
|
|
1302
1278
|
|
data/lib/amqp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amqp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aman Gupta
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-12-
|
13
|
+
date: 2013-12-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: eventmachine
|