ficonabses 0.3.4 → 0.3.5
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/lib/ficonabses/base.rb +5 -4
- metadata +3 -3
data/lib/ficonabses/base.rb
CHANGED
|
@@ -75,17 +75,18 @@ module FiconabSES
|
|
|
75
75
|
@extheader = { 'Content-Type' => 'application/xml' }
|
|
76
76
|
res=self.clnt.get_content(self.uri,self.extheader)
|
|
77
77
|
end
|
|
78
|
-
rescue HTTPClient::BadResponseError
|
|
79
|
-
|
|
78
|
+
rescue Timeout::Error,HTTPClient::BadResponseError
|
|
79
|
+
res='bad response or timeout'
|
|
80
|
+
puts "BAD RESPONSE or Timeout - retrying once #{self.uri} after five seconds"
|
|
80
81
|
sleep(5) # take a break to see if it is too busy
|
|
81
82
|
Timeout::timeout(25) do
|
|
82
83
|
res=self.clnt.get_content(self.uri,self.extheader)
|
|
83
84
|
puts "RETRY: second chance res is #{res}"
|
|
84
85
|
end
|
|
85
86
|
# bad response - try it again?
|
|
86
|
-
rescue Timeout::Error
|
|
87
|
+
#rescue Timeout::Error
|
|
87
88
|
# Too slow!!
|
|
88
|
-
|
|
89
|
+
# res="failure to connect"
|
|
89
90
|
end
|
|
90
91
|
|
|
91
92
|
res
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 3
|
|
8
|
-
-
|
|
9
|
-
version: 0.3.
|
|
8
|
+
- 5
|
|
9
|
+
version: 0.3.5
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Scott Sproule
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2012-
|
|
17
|
+
date: 2012-05-02 00:00:00 +08:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies: []
|
|
20
20
|
|