diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-12-18 12:37:24 -0600 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-12-18 12:37:24 -0600 |
commit | 3cf41280da4f4fe4a3c92258e6891718ce4f489b (patch) | |
tree | 5446ac23ef938b8931e716f0c688efd1d9d514c0 | |
parent | 5f51f93f71cdee3ed598b38cecd8f5fa1a585f49 (diff) | |
parent | fa5cc13823ae8d3008448fa9b42015816679fb15 (diff) | |
download | chef-3cf41280da4f4fe4a3c92258e6891718ce4f489b.tar.gz |
Merge pull request #4327 from chef/jdm/aix-wat
tiny_server should retry Errno::EHOSTUNREACH
-rw-r--r-- | spec/tiny_server.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/tiny_server.rb b/spec/tiny_server.rb index 77afde68e1..ec2a11fe43 100644 --- a/spec/tiny_server.rb +++ b/spec/tiny_server.rb @@ -94,9 +94,11 @@ module TinyServer true rescue Errno::ECONNREFUSED, EOFError, Errno::ECONNRESET => e sleep 0.1 + true # If the host has ":::1 localhost" in its hosts file and if IPv6 # is not enabled we can get NetworkUnreachable exception... - rescue Errno::ENETUNREACH, Net::ReadTimeout, IO::EAGAINWaitReadable => e + rescue Errno::ENETUNREACH, Net::ReadTimeout, IO::EAGAINWaitReadable, + Errno::EHOSTUNREACH => e sleep 0.1 false end |