Skip to content

Conversation

@privateip
Copy link
Member

  • Import threading and asyncio modules for lock implementations
  • Add _auth_lock attribute to ConnectionBase initialization
  • Initialize threading.Lock() in Connection.init() for sync operations
  • Initialize asyncio.Lock() in AsyncConnection.init() for async operations
  • Wrap authentication check in double-checked locking pattern
  • Ensure only one thread/task authenticates during concurrent requests

- Import threading and asyncio modules for lock implementations
- Add _auth_lock attribute to ConnectionBase initialization
- Initialize threading.Lock() in Connection.__init__() for sync operations
- Initialize asyncio.Lock() in AsyncConnection.__init__() for async operations
- Wrap authentication check in double-checked locking pattern
- Ensure only one thread/task authenticates during concurrent requests
@privateip privateip requested a review from a team as a code owner December 12, 2025 04:07
@privateip privateip merged commit c1667c9 into itential:devel Dec 12, 2025
4 checks passed
@privateip privateip deleted the auth-locking branch December 12, 2025 04:22
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.

1 participant