handle Interrupt after Timeout::Error since the latter inherits from the former on 1.8
git-svn-id: file:///home/svn/framework3/trunk@9055 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
6507c4fcea
commit
71ba477674
|
@ -121,11 +121,11 @@ class APIRequest
|
|||
@conn_tries += 1
|
||||
retry
|
||||
end
|
||||
rescue ::Timeout::Error, ::Errno::EHOSTUNREACH,::Errno::ENETDOWN,::Errno::ENETUNREACH,::Errno::ENETRESET,::Errno::EHOSTDOWN,::Errno::EACCES,::Errno::EINVAL,::Errno::EADDRNOTAVAIL
|
||||
@error = "NeXpose host is unreachable"
|
||||
# Handle console-level interrupts
|
||||
rescue ::Interrupt
|
||||
@error = "received a user interrupt"
|
||||
rescue ::Timeout::Error, ::Errno::EHOSTUNREACH,::Errno::ENETDOWN,::Errno::ENETUNREACH,::Errno::ENETRESET,::Errno::EHOSTDOWN,::Errno::EACCES,::Errno::EINVAL,::Errno::EADDRNOTAVAIL
|
||||
@error = "NeXpose host is unreachable"
|
||||
rescue ::Errno::ECONNRESET,::Errno::ECONNREFUSED,::Errno::ENOTCONN,::Errno::ECONNABORTED
|
||||
@error = "NeXpose service is not available"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue