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

pkg/trace/api: ensure listener gets closed only once #3276

Merged
merged 2 commits into from Apr 9, 2019
Merged

Conversation

gbbr
Copy link
Contributor

@gbbr gbbr commented Apr 9, 2019

This change fixes a non-critical panic which was occurring with go1.10.
In some situations, Close would get called multiple times on the
listener when exiting the trace-agent. This was a bug in the net/http
package.

For our releases, we use go1.11 where this problem doesn't exist, but better
avoid it if we can.

For details, see golang/go#24803.

@gbbr gbbr requested a review from a team as a code owner April 9, 2019 10:11
@gbbr gbbr added this to the 6.12.0 milestone Apr 9, 2019
@gbbr gbbr changed the base branch from master to agent-v5 April 9, 2019 10:27
@gbbr gbbr changed the base branch from agent-v5 to master April 9, 2019 10:28
pkg/trace/api/listener.go Outdated Show resolved Hide resolved
This change fixes a non-critical panic which was occurring with go1.10.
In some situations, Close would get called multiple times on the
listener when exiting the trace-agent. For details, see golang/go#24803
@gbbr gbbr modified the milestones: 6.12.0, 6.11.0 Apr 9, 2019
@gbbr gbbr merged commit 04020e2 into master Apr 9, 2019
@gbbr gbbr deleted the gbbr/panic-go1.10 branch April 9, 2019 10:55
gbbr added a commit that referenced this pull request Apr 9, 2019
* pkg/trace/api: ensure listener gets closed only once

This change fixes a non-critical panic which was occurring with go1.10.
In some situations, Close would get called multiple times on the
listener when exiting the trace-agent. For details, see golang/go#24803
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants