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