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
Currently if SSL timeout occurs then Errno::ETIMEDOUT will be raised in wrap_with_ssl but later in open_connection it will be caught and created as Net::LDAP::ConnectionError.
But Net::LDAP::ConnectionError will lose all information about it and it can only be caught as Net::LDAP::Error which covers pretty much everything.
So currently to retry temporary issues (ie. timeout) you have to compare Net::LDAP::Error message with "Connection timed out - OpenSSL connection read timeout" for this.
I think Net::LDAP::ConnectionError should do same for Errno::ETIMEDOUT as it does for Errno::ECONNREFUSED
The text was updated successfully, but these errors were encountered:
Currently if SSL timeout occurs then
Errno::ETIMEDOUT
will be raised inwrap_with_ssl
but later inopen_connection
it will be caught and created asNet::LDAP::ConnectionError
.But
Net::LDAP::ConnectionError
will lose all information about it and it can only be caught asNet::LDAP::Error
which covers pretty much everything.So currently to retry temporary issues (ie. timeout) you have to compare
Net::LDAP::Error
message with"Connection timed out - OpenSSL connection read timeout"
for this.I think
Net::LDAP::ConnectionError
should do same forErrno::ETIMEDOUT
as it does forErrno::ECONNREFUSED
The text was updated successfully, but these errors were encountered: