logstash-input-bunny 0.1.12 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/inputs/bunny.rb +7 -1
- data/logstash-input-bunny.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5d4b8e773ac1c6b521492fccb889ae98a5c2d3e
|
4
|
+
data.tar.gz: 8ea5eb4bdc01695fd109d470f6c97e51fed6a809
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd087412002e620d4ebf918bf89d8f81074f4e4fa1cd5b19689c7b97106d9bb4a5911e36b0e7f7473f4e0ff94acc6319eecd1077c183e6784b505a20f611e051
|
7
|
+
data.tar.gz: ac0029d034f36f766afa208bd10f1db9ce1a95707bf98b2d4a379cd5730114b6b1cdfcddab5cc1b3615634f85f53d4697b96824a45c454e4c7f345906151a79b
|
@@ -167,6 +167,7 @@ class LogStash::Inputs::Bunny < LogStash::Inputs::Threadable
|
|
167
167
|
message(:warn, "ssl handshake failed, retrying",
|
168
168
|
attempt: connection_attempt)
|
169
169
|
connection_attempt += 1
|
170
|
+
sleep(5)
|
170
171
|
retry unless connection_attempt > 3
|
171
172
|
end
|
172
173
|
|
@@ -218,7 +219,12 @@ class LogStash::Inputs::Bunny < LogStash::Inputs::Threadable
|
|
218
219
|
consumer.channel.acknowledge(delivery_info.delivery_tag) if @ack
|
219
220
|
end
|
220
221
|
|
221
|
-
consumer.queue.subscribe_with(consumer, block:
|
222
|
+
consumer.queue.subscribe_with(consumer, block: false)
|
223
|
+
end
|
224
|
+
|
225
|
+
# Join all consummer threads to the current thread and wait to complete
|
226
|
+
@consummers.each do |name, consumer|
|
227
|
+
consumer.channel.work_pool.join
|
222
228
|
end
|
223
229
|
end
|
224
230
|
end # class LogStash::Inputs::RabbitMQ
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-input-bunny'
|
4
|
-
s.version = '0.
|
4
|
+
s.version = '0.2.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Pull events from a RabbitMQ exchange."
|
7
7
|
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
|