handle broken pipe too

This commit is contained in:
John Bintz 2012-02-06 11:38:48 -05:00
parent a8b1a86096
commit 1baef62b6f
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ module VegetableGlue
while times > 0
begin
Net::HTTP.get(options[:url])
rescue Errno::ECONNREFUSED, Errno::ECONNRESET
rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EPIPE
return true
end
@ -93,7 +93,7 @@ module VegetableGlue
while times > 0
begin
result = get_acceptance
rescue Errno::ECONNREFUSED, Errno::ECONNRESET
rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EPIPE
end
break if result