We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dc2907 commit 9b1f205Copy full SHA for 9b1f205
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