-
Notifications
You must be signed in to change notification settings - Fork 1k
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
ConnectStart/ConnectDone() called multiple times, causing panic #266
Comments
Further diagnosis from myself and @paivagustavo: this is due to the IPv6/IPv4 racing behavior of golang resulting in multiple connect() calls being made, one per destination address. |
Verified this issue goes away when I explicitly connect to To trip this bug, the remote host needs to fail to respond after 300ms on IPv4 and needs to also have an IPv6 address for the hostname. So this is indeed an edge case, but still worth fixing. |
As @lizthegrey said, the The first and easier way is to add the The second way is to change how we track the state of these spans on the Particularly, I like the second approach most. |
I agree that the second approach feels more correct to me. |
Stack trace from @austinlparker:
My analysis:
The text was updated successfully, but these errors were encountered: