ficonabses 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ficonabses/base.rb +3 -2
- metadata +2 -2
data/lib/ficonabses/base.rb
CHANGED
@@ -76,10 +76,11 @@ module FiconabSES
|
|
76
76
|
res=self.clnt.get_content(self.uri,self.extheader)
|
77
77
|
end
|
78
78
|
rescue HTTPClient::BadResponseError
|
79
|
+
puts "BAD RESPONSE - retrying once #{self.uri} after five seconds"
|
79
80
|
sleep(5) # take a break to see if it is too busy
|
80
|
-
Timeout::timeout(25) do
|
81
|
-
puts "BAD RESPONSE - retrying once #{self.uri}"
|
81
|
+
Timeout::timeout(25) do
|
82
82
|
res=self.clnt.get_content(self.uri,self.extheader)
|
83
|
+
puts "RETRY: second chance res is #{res}"
|
83
84
|
end
|
84
85
|
# bad response - try it again?
|
85
86
|
rescue Timeout::Error
|