Skip to content

Commit

Permalink
Fix LDAP backoff retry logic for serverdown to actually use new conne…
Browse files Browse the repository at this point in the history
…ctions (#100)

* fix: fix ldap backoff retry logic to actually create new connections, and clean up edge cases

* chore: add some comments

* chore: DRY

* chore: more comment

* chore: simplify backoff delay

* fix: replace semaphore with manual reset event

* chore: bad import

* chore: rename var for readability

* chore: delete old comment

* fix: fix retry logic again

* chore: run formatter, add a small sleep to prevent race
  • Loading branch information
rvazarkar authored Feb 6, 2024
1 parent ab2e21a commit 03b84c9
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 140 deletions.
3 changes: 2 additions & 1 deletion src/CommonLib/Enums/LdapErrorCodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ public enum LdapErrorCodes : int
{
Success = 0,
Busy = 51,
ServerDown = 81
ServerDown = 81,
LocalError = 82
}
}
Loading

0 comments on commit 03b84c9

Please sign in to comment.