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

Implement CloseIdleConnections on apmelasticsearch #750

Merged
merged 2 commits into from Apr 21, 2020

Conversation

pebrc
Copy link
Contributor

@pebrc pebrc commented Apr 21, 2020

The apmelasticsearch roundTripper did not implement CloseIdleConnections and we (@charith-elastic who did the investigation) believe we observed a goroutine leak as a consequence of that.

This PR adds support for CloseIdleConnections and propagates it to the wrapped transport/ RoundTripper if it implements it.

@axw
Copy link
Member

axw commented Apr 21, 2020

Yikes. Thanks for the PR!

Can you please add a mention of this in https://github.com/elastic/apm-agent-go/blob/master/CHANGELOG.asciidoc, in the "unreleased" section?

@axw
Copy link
Member

axw commented Apr 21, 2020

Test failure is unrelated

@axw axw merged commit eea0ff3 into elastic:master Apr 21, 2020
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.

None yet

2 participants