LVS-JSONService 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.specification CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: LVS-JSONService
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  require_paths:
6
6
  - lib
7
7
  platform: ruby
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{LVS-JSONService}
5
- s.version = "0.4.0"
5
+ s.version = "0.4.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["LVS", "andyjeffries"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -55,8 +55,6 @@ module LVS
55
55
  end
56
56
  end
57
57
 
58
- http.open_timeout = options[:timeout] || 1
59
- http.read_timeout = options[:timeout] || 1
60
58
  LVS::JsonService::Logger.debug "Connecting to #{host}:#{port}"
61
59
  http.start
62
60
  http
@@ -31,6 +31,8 @@ module LVS
31
31
  retries -= 1
32
32
 
33
33
  http = LVS::JsonService::ConnectionManager.get_connection(uri.host, uri.port, options)
34
+ http.open_timeout = options[:timeout] || 1
35
+ http.read_timeout = options[:timeout] || 1
34
36
  response = http.request(req)
35
37
 
36
38
  rescue Errno::EPIPE, EOFError, Errno::ECONNRESET, Errno::ECONNABORTED
@@ -49,7 +51,7 @@ module LVS
49
51
  )
50
52
  retry
51
53
  end
52
- raise LVS::JsonService::TimeoutError.new("Backend failed to respond in time", 500, service, args)
54
+ raise LVS::JsonService::TimeoutError.new("Backend failed to respond in time (#{options[:timeout]}s)", 500, service, args)
53
55
 
54
56
  rescue Errno::ECONNREFUSED => e
55
57
  if retries >= 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: LVS-JSONService
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - LVS
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-08-06 00:00:00 +01:00
13
+ date: 2009-08-06 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies: []
16
16