Skip to content

Commit

Permalink
Adding comment to explain use for _excludedDomains
Browse files Browse the repository at this point in the history
  • Loading branch information
definitelynotagoblin committed Jan 9, 2025
1 parent 599e0c9 commit fe3c8a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CommonLib/LdapConnectionPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ internal class LdapConnectionPool : IDisposable{
private const int BackoffDelayMultiplier = 2;
private const int MaxRetries = 3;
private static readonly ConcurrentDictionary<string, NetAPIStructs.DomainControllerInfo?> DCInfoCache = new();

// Tracks domains we know we've determined we shouldn't try to connect to
private static readonly ConcurrentHashSet _excludedDomains = new();

public LdapConnectionPool(string identifier, string poolIdentifier, LdapConfig config, PortScanner scanner = null, NativeMethods nativeMethods = null, ILogger log = null) {
Expand Down

0 comments on commit fe3c8a1

Please sign in to comment.