ficonabses 0.3.2 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/ficonabses/base.rb +3 -2
  2. metadata +2 -2
@@ -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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Scott Sproule