We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f80e748 + 7a44bc3 commit ac55e4cCopy full SHA for ac55e4c
lib/net/ldap/connection.rb
@@ -17,6 +17,8 @@ def initialize(server)
17
raise Net::LDAP::LdapError, "Server #{server[:host]} refused connection on port #{server[:port]}."
18
rescue Errno::EHOSTUNREACH => error
19
raise Net::LDAP::LdapError, "Host #{server[:host]} was unreachable (#{error.message})"
20
+ rescue Errno::ETIMEDOUT
21
+ raise Net::LDAP::LdapError, "Connection to #{server[:host]} timed out."
22
end
23
24
if server[:encryption]
0 commit comments