superbolt 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/superbolt/app.rb +7 -0
- data/lib/superbolt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10cf14224cd0251f4bb5e981d0a8795e42f93cce
|
4
|
+
data.tar.gz: 830da86d9ebd337a47bd56be66cbe5771673a50b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b40a2d370fc2cbb28940734c2fb4a8d29993325dccc5fbee26943948dc6eaa1384135880ecb469b124e0533006a60cb62028f89625f892001d874deb4493035
|
7
|
+
data.tar.gz: 28dce44be96f3072e02ce1874f303ce9b1d938332925a42378032047a5fb9b35b9fdccf56738ed9247f1a98b164de1bca475695ac86738f502c1889fb680718e
|
data/lib/superbolt/app.rb
CHANGED
@@ -44,6 +44,13 @@ module Superbolt
|
|
44
44
|
EventMachine.run do
|
45
45
|
queue.channel.auto_recovery = true
|
46
46
|
|
47
|
+
# LShift came up with this solution, which helps reconnect when
|
48
|
+
# a process runs longer than the heartbeat (and therefore disconnects)
|
49
|
+
queue.channel.connection.on_tcp_connection_loss do |conn, settings|
|
50
|
+
puts 'Lost TCP connection, reconnecting'
|
51
|
+
conn.reconnect(false, 2)
|
52
|
+
end
|
53
|
+
|
47
54
|
runner_class.new(queue, error_queue, logger, block).run
|
48
55
|
|
49
56
|
quit_subscriber_queue.subscribe do |message|
|
data/lib/superbolt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: superbolt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- socialchorus
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|