lib/softwear/auth/model.rb in softwear-lib-1.5.13 vs lib/softwear/auth/model.rb in softwear-lib-1.5.14

- old
+ new

@@ -189,9 +189,12 @@ return default_socket.gets.try(:chomp) || (raise AuthServerError, "Nil socket response?") rescue Errno::ECONNREFUSED => e raise AuthServerDown, "Unable to connect to the authentication server." + + rescue Errno::ETIMEDOUT => e + raise AuthServerDown, "Connection to authentication server timed out." end # ==================== # Expires the query cache, setting a new expiration time as well as merging # with the previous query cache, in case of an auth server outage.