lib/whois/server/socket_handler.rb in whois-3.0.0 vs lib/whois/server/socket_handler.rb in whois-3.1.0
- old
+ new
@@ -20,12 +20,10 @@
class SocketHandler
# Array of connection errors to rescue
# and wrap into a {Whois::ConnectionError}
RESCUABLE_CONNECTION_ERRORS = [
- Errno::ECONNRESET,
- Errno::EHOSTUNREACH,
- Errno::ECONNREFUSED,
+ SystemCallError,
SocketError,
]
# Performs the Socket request.
#