right_agent 2.5.1-x86-mingw32 → 2.6.1-x86-mingw32

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.5"
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.5 instead.")
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
@@ -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.5.1'
29
- spec.date = '2015-03-13'
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.5.1
4
+ version: 2.6.1
5
5
  prerelease:
6
6
  platform: x86-mingw32
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-03-13 00:00:00.000000000 Z
15
+ date: 2015-07-02 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: right_support
@@ -447,7 +447,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
447
447
  version: '0'
448
448
  segments:
449
449
  - 0
450
- hash: -2135434958328220214
450
+ hash: -1688678042091044964
451
451
  requirements: []
452
452
  rubyforge_project:
453
453
  rubygems_version: 1.8.26