FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add retry on EINTR. by mit-da · Pull Request #527 · python-ldap/python-ldap · GitHub

Add retry on EINTR. - #527

Open
mit-da wants to merge 5 commits into
python-ldap:mainfrom
mit-da:patch-1
Open

Add retry on EINTR.#527
mit-da wants to merge 5 commits into
python-ldap:mainfrom
mit-da:patch-1

Conversation

mit-da commented Jun 14, 2023

Copy link
Copy Markdown

Try and fix issue #242 by adding a retry on EINTR and a sleep before attempting to do so. This is based off of #291.
We happen to come across a few instances of EINTR in our usage every day and would like to add a single retry since it seems all further LDAP calls are successful. Only kept it to a single retry for now, though I could be convinced to raise it.

mit-da added 5 commits June 14, 2023 15:32
Try and fix issue python-ldap#242 by adding a retry on EINTR and a sleep before attempting to do so.
similar to original function to pass tests.

mit-da commented Jul 13, 2023

Copy link
Copy Markdown
Author

Apologies for the delay, pretty inexperienced with python. Made some changes to fix tests.

Copy link
Copy Markdown
Contributor

doesn't it already work when you use ldap.ldapobject.ReconnectLDAPObject instead of ldap.ldapobject.SimpleLDAPObject?

mit-da commented Jul 19, 2023

Copy link
Copy Markdown
Author

I tested with ldap.ldapobject.ReconnectLDAPObject and unfortunately the interrupts still occur and don't seem to retry. The bind action seems to work but a call to say modify a group will throw the error.

Copy link
Copy Markdown
Contributor

Is setting the LDAP_OPT_RESTART option not working? Can you post the backtrace when this happens?

Copy link
Copy Markdown
Contributor

-1 until we know if/when LDAP_OPT_RESTART is (not) enough. Don't want to paper over potential libldap bugs.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL