diff options
| author | mokha <mokha@cisco.com> | 2018-11-10 10:09:33 -0700 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2018-11-10 10:09:33 -0700 |
| commit | bd4e24325b76740c91a96080a3cee9d732c960db (patch) | |
| tree | 9077558201b5460fbe92b84ab3fffa1e6f53921f /lib/net/hippie.rb | |
| parent | a247acd75e953221cee80262eba278916bb73f8c (diff) | |
add retry.
Diffstat (limited to 'lib/net/hippie.rb')
| -rw-r--r-- | lib/net/hippie.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/net/hippie.rb b/lib/net/hippie.rb index 71e786d..6c39a50 100644 --- a/lib/net/hippie.rb +++ b/lib/net/hippie.rb @@ -14,6 +14,14 @@ require 'net/hippie/api' module Net # net/http for hippies. module Hippie + CONNECTION_ERRORS = [ + EOFError, + Errno::ECONNRESET, + Errno::EINVAL, + Net::ProtocolError, + Timeout::Error + ].freeze + def self.logger @logger ||= Logger.new(STDOUT) end |
