Skip to content

Conversation

goffrie
Copy link
Contributor

@goffrie goffrie commented Apr 10, 2025

There were a few missing cases updating connections_in_pool / connection_count metrics.
I've fixed those and also changed them to always store the precise count
(either exchange.exist or exchange.available.len()), rather than using fetch_add/fetch_sub,
as the proper value is always known. No race condition is possible since we are under exchange's lock.

@blackbeam blackbeam merged commit 7e57a8a into blackbeam:master Apr 21, 2025
20 checks passed
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.

2 participants