eventq_rabbitmq 1.7.6 → 1.7.7

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: ad1500a651cf1c0240f8bd1b4ebd8f17869471a1
4
- data.tar.gz: 836e1a4458d9d10392dccc9805b1f818c6955bfe
3
+ metadata.gz: 60e5a3271b53e9ca20221e49bdb970935730e586
4
+ data.tar.gz: ee5f3fda4e16244475862d3bcdee03bbeeb82a2f
5
5
  SHA512:
6
- metadata.gz: 80b41d4552a88745b58261c4da90786c129590cb7151402cc95aba488193ef2c097656d13e4b83e5f34734920e38d50140ca7d5a6ca00cb2b71e0fb66d5e2f94
7
- data.tar.gz: 8566fb538a7c27befe55bce3cf36f5f4fb9e310e0ffb072e503328540a3a764952a877ff2fc69e80dc42adb6c37f4ce8f19e5ac21d9f8e2e19f00b5ca31be02c
6
+ metadata.gz: 3c2d6c0381d3bad9aade432ac041ed413aefa7999ef16b35740df18b7c690fa5a1856f99037c0015c9c91612d5b99caf0b07bf7665b82890c63e75678b46e8a9
7
+ data.tar.gz: 6a6055eb4e150dbc61592f267d3cc2fa8ec946fecde7daf821628a6d505797dc72476ecad2988408ef9be96ae4cc36cfb62c28af59a4e6edd45db751ae0de0d5
@@ -22,14 +22,30 @@ module EventQ
22
22
 
23
23
  end
24
24
 
25
+ def connection_options
26
+ {
27
+ :host => @endpoint,
28
+ :port => @port,
29
+ :user => @user,
30
+ :pass => @password,
31
+ :ssl => @ssl,
32
+ :read_timeout => 2,
33
+ :heartbeat => 2,
34
+ :continuation_timeout => 5000,
35
+ :automatically_recover => true,
36
+ :network_recovery_interval => 1,
37
+ :recover_from_connection_close => true
38
+ }
39
+ end
40
+
25
41
  def get_channel
26
- conn = Bunny.new(:host => @endpoint, :port => @port, :user => @user, :pass => @password, :ssl => @ssl)
42
+ conn = Bunny.new(connection_options)
27
43
  conn.start
28
44
  return conn.create_channel
29
45
  end
30
46
 
31
47
  def get_connection
32
- conn = Bunny.new(:host => @endpoint, :port => @port, :user => @user, :pass => @password, :ssl => @ssl)
48
+ conn = Bunny.new(connection_options)
33
49
  conn.start
34
50
  return conn
35
51
  end
@@ -79,7 +79,7 @@ module EventQ
79
79
  begin
80
80
  thread_process_iteration(client, manager, queue, block)
81
81
  rescue => e
82
- raise "An unhandled error occurred attempting to communicate with rabbitmq. Error: #{e} | Backtrace: #{e.backtrace}"
82
+ EventQ.logger.error "An unhandled error occurred attempting to communicate with rabbitmq. Error: #{e} | Backtrace: #{e.backtrace}"
83
83
  end
84
84
 
85
85
  end
@@ -188,8 +188,6 @@ module EventQ
188
188
  return provider.deserialize(payload)
189
189
  end
190
190
 
191
- private
192
-
193
191
  def reject_message(channel, message, delivery_info, retry_exchange, queue)
194
192
  #reject the message to remove from queue
195
193
  channel.reject(delivery_info.delivery_tag, false)
@@ -1,3 +1,3 @@
1
1
  module EventqRabbitmq
2
- VERSION = "1.7.6"
2
+ VERSION = "1.7.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventq_rabbitmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.6
4
+ version: 1.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaughanbrittonsage