Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-open control connection after it closes, and add timeouts #2613

Merged
merged 2 commits into from
Oct 27, 2021

Conversation

arielshaqed
Copy link
Contributor

Add much shorter LDAP timeouts to the control connection so users do not
need to wait for minutes to fail to login.

The control connection may close at any time, because TCP. When it does
re-open it on the next connection attempt. (The first attempted login
after being disconnected may fail. I consider this a feature because it
will rarely happen, the user will try again to login, and if the attempt
just made is what caused the server to fail then we should give the user
some feedback.)

Fixes #2606.

Add much shorter LDAP timeouts to the control connection so users do not
need to wait for minutes to fail to login.

The control connection may close at any time, because TCP.  When it does
re-open it on the *next* connection attempt.  (The first attempted login
after being disconnected may fail.  I consider this a feature because it
will rarely happen, the user will try again to login, and if the attempt
just made is what caused the server to fail then we should give the user
some feedback.)

Fixes #2606.
@arielshaqed arielshaqed requested a review from guy-har October 26, 2021 15:19
Copy link
Contributor

@guy-har guy-har left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks!

Not on configuration because of impossibility to set default values on
optional subobjects when using viper.  Defer on this until a real user
requirement for this shows up.
@arielshaqed arielshaqed added the include-changelog PR description should be included in next release changelog label Oct 27, 2021
@arielshaqed
Copy link
Contributor Author

Thanks!

@arielshaqed arielshaqed merged commit 62ebf77 into master Oct 27, 2021
@arielshaqed arielshaqed deleted the bugfix/2606-ldap-reopen-control-connection branch October 27, 2021 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include-changelog PR description should be included in next release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ldap auth] Handle closed control connection
2 participants