right_agent 2.5.1 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -617,6 +617,8 @@ module RightScale
|
|
617
617
|
def process_long_poll(result)
|
618
618
|
case result
|
619
619
|
when Exceptions::Unauthorized, Exceptions::ConnectivityFailure, Exceptions::RetryableError, Exceptions::InternalServerError
|
620
|
+
# Reset connect_interval otherwise long-poll and WebSocket connect attempts will continue to backoff
|
621
|
+
@connect_interval = CONNECT_INTERVAL
|
620
622
|
update_listen_state(:choose, backoff_reconnect_interval)
|
621
623
|
result = nil
|
622
624
|
when Exception
|
@@ -30,9 +30,9 @@ module RightScale
|
|
30
30
|
|
31
31
|
def self.included(base)
|
32
32
|
if @check_active_support
|
33
|
-
if require_succeeds?("active_support") && (v = Gem.loaded_specs['activesupport'].version.to_s) != "2.3.
|
33
|
+
if require_succeeds?("active_support") && (v = Gem.loaded_specs['activesupport'].version.to_s) != "2.3.18"
|
34
34
|
raise Exception.new("Some versions of the activesupport gem modify json in ways that are incompatible with this " +
|
35
|
-
"RightScale::Serializable module. Version #{v} used here is not allowed, use 2.3.
|
35
|
+
"RightScale::Serializable module. Version #{v} used here is not allowed, use 2.3.18 instead.")
|
36
36
|
else
|
37
37
|
@check_active_support = false
|
38
38
|
end
|
data/right_agent.gemspec
CHANGED
@@ -25,8 +25,8 @@ require 'rbconfig'
|
|
25
25
|
|
26
26
|
Gem::Specification.new do |spec|
|
27
27
|
spec.name = 'right_agent'
|
28
|
-
spec.version = '2.
|
29
|
-
spec.date = '2015-
|
28
|
+
spec.version = '2.6.1'
|
29
|
+
spec.date = '2015-07-02'
|
30
30
|
spec.authors = ['Lee Kirchhoff', 'Raphael Simon', 'Tony Spataro', 'Scott Messier']
|
31
31
|
spec.email = 'lee@rightscale.com'
|
32
32
|
spec.homepage = 'https://github.com/rightscale/right_agent'
|
@@ -756,6 +756,7 @@ describe RightScale::RouterClient do
|
|
756
756
|
@client.send(:process_long_poll, e).should be nil
|
757
757
|
@client.instance_variable_get(:@listen_state).should == :choose
|
758
758
|
@client.instance_variable_get(:@listen_interval).should == 4
|
759
|
+
@client.instance_variable_get(:@connect_interval).should == 30
|
759
760
|
end
|
760
761
|
end
|
761
762
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: right_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2015-
|
15
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: right_support
|
@@ -415,7 +415,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
415
415
|
version: '0'
|
416
416
|
segments:
|
417
417
|
- 0
|
418
|
-
hash: -
|
418
|
+
hash: -1688678042091044964
|
419
419
|
requirements: []
|
420
420
|
rubyforge_project:
|
421
421
|
rubygems_version: 1.8.26
|