ficonabses 0.3.2 → 0.3.4
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 +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
|