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:
parent
935d02346c
commit
0e1a97a861
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue