P3-03: Double-checked locking on plugin _HTTP_CLIENT — race during concurrent init #21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: P3 (Low)
File:
~/.hermes/plugins/decider/__init__.pylines 85-89Problem
Two threads calling
_call_decidersimultaneously may both see_HTTP_CLIENT is Noneand create separate clients. Benign (just wasted connections) but a classic anti-pattern.Fix
Use a module-level lock or initialize eagerly at module load time: