LVS-JSONService 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.specification +1 -1
- data/LVS-JSONService.gemspec +1 -1
- data/VERSION +1 -1
- data/lib/lvs/json_service/connection_manager.rb +0 -2
- data/lib/lvs/json_service/request.rb +3 -1
- metadata +2 -2
data/.specification
CHANGED
data/LVS-JSONService.gemspec
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
@@ -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.
|
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 +
|
13
|
+
date: 2009-08-06 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|