diff options
| author | mo <mo@mokhan.ca> | 2018-11-10 21:34:05 -0700 |
|---|---|---|
| committer | mo <mo@mokhan.ca> | 2018-11-10 21:34:05 -0700 |
| commit | aa895cfe05a82195671d7290d78b6480652363ab (patch) | |
| tree | 68741f58c358d1f2a1ce3f67b1ed5934d57bba01 /lib/net/hippie.rb | |
| parent | 7d5ff8c026e0a666bd474796fac25fbe68f31153 (diff) | |
extract attemp method.
Diffstat (limited to 'lib/net/hippie.rb')
| -rw-r--r-- | lib/net/hippie.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/net/hippie.rb b/lib/net/hippie.rb index 71e786d..9a7ea72 100644 --- a/lib/net/hippie.rb +++ b/lib/net/hippie.rb @@ -14,6 +14,11 @@ require 'net/hippie/api' module Net # net/http for hippies. module Hippie + TIMEOUT_ERRORS = [ + EOFError, Errno::ECONNRESET, Errno::EINVAL, + Net::ProtocolError, Timeout::Error + ].freeze + def self.logger @logger ||= Logger.new(STDOUT) end |
