summaryrefslogtreecommitdiff
path: root/lib/net/hippie/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/hippie/client.rb')
-rw-r--r--lib/net/hippie/client.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/net/hippie/client.rb b/lib/net/hippie/client.rb
index db31faa..e28633d 100644
--- a/lib/net/hippie/client.rb
+++ b/lib/net/hippie/client.rb
@@ -74,7 +74,8 @@ module Net
retries = 0 if retries.nil? || retries.negative?
0.upto(retries) do |n|
return yield self
- rescue *::Net::Hippie::CONNECTION_ERRORS => error
+ rescue EOFError, Errno::ECONNRESET, Errno::EINVAL,
+ Net::ProtocolError, Timeout::Error => error
raise error if n == retries
delay = ((2**n) * 0.1) + Random.rand(0.05) # delay + jitter