logstash-input-bunny 0.1.12 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5c4dbbe89ddbb17aeacca3faecf3647eecced04
4
- data.tar.gz: 645754ffc7b545fd97188364d5e556e1fd0474c1
3
+ metadata.gz: a5d4b8e773ac1c6b521492fccb889ae98a5c2d3e
4
+ data.tar.gz: 8ea5eb4bdc01695fd109d470f6c97e51fed6a809
5
5
  SHA512:
6
- metadata.gz: f64cf8c7e46897dee3c0245452045deb1589f1bd7d08e9e1f21ab8c78848177ccb6876d67a32cf99c342f787f04b66fa7e8bc71f275392285d27fd6a7e454bc4
7
- data.tar.gz: b2371829cd2ea89ea4d5e8c9e51f40414bf1cac3dca0ed7bcaf96b658a29715e35b51ced95b581fd2a74b2b9d72854c53cac3804378408309441b5eca8437740
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: true)
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.1.12'
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-bunny
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Serafini