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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60e5a3271b53e9ca20221e49bdb970935730e586
|
4
|
+
data.tar.gz: ee5f3fda4e16244475862d3bcdee03bbeeb82a2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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(
|
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
|
-
|
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)
|