diff --git a/lib/vegetable_glue/runner.rb b/lib/vegetable_glue/runner.rb index dbeb530..bcd372b 100644 --- a/lib/vegetable_glue/runner.rb +++ b/lib/vegetable_glue/runner.rb @@ -74,7 +74,7 @@ module VegetableGlue while times > 0 begin Net::HTTP.get(options[:url]) - rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EPIPE + rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EPIPE, EOFError return true end @@ -93,7 +93,7 @@ module VegetableGlue while times > 0 begin result = get_acceptance - rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EPIPE + rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EPIPE, EOFError end break if result