Skip to content

Commit 9241027

Browse files
mtoddJohn Wedoff
authored andcommitted
Configure socket read timeouts
1 parent cc2ba71 commit 9241027

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/net/ldap/connection.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ def open_connection(server)
6767
close
6868
errors << [e, host, port]
6969
end
70+
if server[:timeout]
71+
@conn.read_ber_timeout = server[:timeout]
72+
end
7073
end
7174

7275
raise Net::LDAP::ConnectionError.new(errors)

0 commit comments

Comments
 (0)