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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28f631baf4151d4a8a1cc90a04c4605720fe7add
4
- data.tar.gz: 512314e5212d36fcdba03dddd0cf8238460752dc
3
+ metadata.gz: 10cf14224cd0251f4bb5e981d0a8795e42f93cce
4
+ data.tar.gz: 830da86d9ebd337a47bd56be66cbe5771673a50b
5
5
  SHA512:
6
- metadata.gz: b52d7077b9d04ab8d8c0e262bd8f2bb9c88a189a8e7672c5e5d73a58137c769b3a4549bcfb7febce1433910f5314d3fe0ce294563278c1b4a3d36ee9f30c3fb6
7
- data.tar.gz: 0c8e4857cc0874d2acb2e6f4b1eefb0d39b4fa3e41e4025288d3bfbbe84a0c988a13ddceb1a1ed9e1eb7d3711c3c3d58e0d37b39d80349a7845ba30a506a5f01
6
+ metadata.gz: 4b40a2d370fc2cbb28940734c2fb4a8d29993325dccc5fbee26943948dc6eaa1384135880ecb469b124e0533006a60cb62028f89625f892001d874deb4493035
7
+ data.tar.gz: 28dce44be96f3072e02ce1874f303ce9b1d938332925a42378032047a5fb9b35b9fdccf56738ed9247f1a98b164de1bca475695ac86738f502c1889fb680718e
@@ -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|
@@ -1,3 +1,3 @@
1
1
  module Superbolt
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
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.0
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-08 00:00:00.000000000 Z
11
+ date: 2014-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport