diff options
author | sersut <serdar@opscode.com> | 2013-05-31 14:49:43 -0700 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2013-05-31 14:54:31 -0700 |
commit | 68f7119632f5579ff82373d5e855a14f8fbdeb76 (patch) | |
tree | 0bd375491b41b1c685e3dd04188c93ce08f0aabb /spec/tiny_server.rb | |
parent | fcac3c5883d958416c1b8987823a0242711a5b36 (diff) | |
download | chef-68f7119632f5579ff82373d5e855a14f8fbdeb76.tar.gz |
Rescue ECONNRESET during tiny server startup.
Diffstat (limited to 'spec/tiny_server.rb')
-rw-r--r-- | spec/tiny_server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/tiny_server.rb b/spec/tiny_server.rb index fe2b7554ca..fb8dfc6290 100644 --- a/spec/tiny_server.rb +++ b/spec/tiny_server.rb @@ -91,7 +91,7 @@ module TinyServer true rescue OpenURI::HTTPError true - rescue Errno::ECONNREFUSED, EOFError => e + rescue Errno::ECONNREFUSED, EOFError, Errno::ECONNRESET => e sleep 0.1 # If the host has ":::1 localhost" in its hosts file and if IPv6 # is not enabled we can get NetworkUnreachable exception... |