1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

JRuby raises SystemCallError instead of Errno::ECONNRESET

This commit is contained in:
Konstantin Haase 2012-03-10 17:12:02 +01:00
parent 935d02346c
commit 0e1a97a861

View file

@ -65,7 +65,7 @@ module IntegrationHelper
def alive?
3.times { get('/ping') }
true
rescue Errno::ECONNREFUSED, Errno::ECONNRESET, EOFError => error
rescue Errno::ECONNREFUSED, Errno::ECONNRESET, EOFError, SystemCallError => error
false
end