Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix double counting of connection terminated metric. #359

Merged
merged 1 commit into from
Dec 11, 2018

Conversation

mikkokar
Copy link
Contributor

Two simple improvements:

  • terminatedConnections was incremented twice (or more) if the first TCP connection attempt fails, but the subsequent attempt(s) succeeds.

  • Ensure a connection is removed from activeConnections when it gets closed. This makes the availableConnections metric bit more responsive to changes in connection state.

establishment is re-attempted.

Ensure a connection is removed from `activeConnections` when it gets
closed.
@mikkokar mikkokar merged commit d93f46e into ExpediaGroup:master Dec 11, 2018
@mikkokar mikkokar deleted the connection-pool branch December 11, 2018 13:00
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