combi 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8dfbacc13cc058b63321ceda749d6ceea8c6a5c1
4
- data.tar.gz: ea5082f27fa522b103e2fc8e92032e0a6fd91e90
3
+ metadata.gz: 58781acb66774c82c98e6224c73c7b08c34dcbc1
4
+ data.tar.gz: edb565ca843264f3aedd54bf34f166d87f9e39eb
5
5
  SHA512:
6
- metadata.gz: 53b03c8e8b8ed4a86ab0957702f0524f1047c738ae53ea6e83c1065144e6ad94c9cb5c6b0dc42b2fea0c04d91b478a9f9c9f7727cfb2eeb8e5d578f8fdf11e5c
7
- data.tar.gz: 0b8fc533afb38fcfd4962a548218b8b7242c901511004ec47424c66396379aa6bfc38be04377907650ed779ca7d3dbc6ef6fae4227c6e9daa52e96c49bc2839a
6
+ metadata.gz: 4ce7de6583f49e168fb94f001e41cceb79574ed39699c8871043d620a500458cf3c73c1a329bd0431008a09d3dd349c4a94a7e0683505c5c492557d4f55f9198
7
+ data.tar.gz: b4251807c287d559db5c401b35627eea7bfad082e2eb6469301ecd8a9cd2dd5225720efcc81d7924406af97a6d92d5f81c49416ddd58288306f0cb1f09b5da93
@@ -29,7 +29,10 @@ module Combi
29
29
  end
30
30
 
31
31
  def start
32
- @config[:on_tcp_connection_failure] = Proc.new { EM.add_timer(4 * rand) { start } }
32
+ @config[:reconnect_period] ||= 4
33
+ reconnection_proc = Proc.new { EM.add_timer(@config[:reconnect_period] * rand) { start } }
34
+ @config[:on_tcp_connection_failure] = reconnection_proc
35
+ @config[:on_possible_authentication_failure] = reconnection_proc
33
36
  connect @config do
34
37
  if @options[:rpc] == :enabled
35
38
  create_rpc_queue
@@ -1,3 +1,3 @@
1
1
  module Combi
2
- VERSION = '0.0.16'
2
+ VERSION = '0.0.17'
3
3
  end
@@ -26,7 +26,8 @@ describe 'Combi::Queue' do
26
26
  :vhost => "/",
27
27
  :ssl => false,
28
28
  :heartbeat => 0,
29
- :frame_max => 131072
29
+ :frame_max => 131072,
30
+ :reconnect_period => 0.5
30
31
  }
31
32
  end
32
33
  Given(:provider) { Combi::ServiceBus.init_for(:queue, { amqp_config: amqp_config.merge(role: 'provider') } ) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: combi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - German Del Zotto