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.
Files changed (2) hide show
  1. data/lib/ficonabses/base.rb +5 -4
  2. metadata +3 -3
@@ -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
- puts "BAD RESPONSE - retrying once #{self.uri} after five seconds"
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
- res="failure to connect"
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
- - 4
9
- version: 0.3.4
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-04-29 00:00:00 +08:00
17
+ date: 2012-05-02 00:00:00 +08:00
18
18
  default_executable:
19
19
  dependencies: []
20
20