You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch prevents LDAP connections to hang up for an eccessive amount of time
and instead returns earlier in case of failures (e.g., packets dropped).
A new option is now exposed through Net::LDAP:
- connect_timeout: sets a timeout for socket#connect (defaults to 1s)
It also provides an integration test to validate the new behaviour (ruby-ldap#244)
This patch prevents LDAP connections to hang up for an eccessive amount of time
and instead returns earlier in case of failures (e.g., packets dropped).
A new option is now exposed through Net::LDAP:
- connect_timeout: sets a timeout for socket#connect (defaults to 1s)
It also provides an integration test to validate the new behaviour (ruby-ldap#244)
We should have integration tests to cover connection failures/timeouts.
One possible approach is to use iptables to drop/reject packets.
For instance, to test that a socket connect timeout is triggered, something like
iptables -A OUTPUT -p tcp -j DROP --dport 389
can be used.We should investigate how to play with this on Travis.
The text was updated successfully, but these errors were encountered: