Skip to content

fix: revert "detect JetBrains running on local ipv6 (#11653)" #11664

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

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

spikecurtis
Copy link
Contributor

Fixes #11659

This reverts commit #11653

I think what's happening is that Linux allows two different things to bind to the same port if one binds to IPv4 and another binds to IPv6. However, in coderdtest we start a test server which binds to 127.0.0.1:0, and then overwrite the accessURL to http://localhost:<port>. localhost is ambiguous, so when the HTTP client then tries to dial, it will first try the IPv6 local IP (::1) before it tries IPv4 (127.0.0.1). If we happen to hit a port conflict, we hit the echo server, which triggers the HTTP protocol error.

@spikecurtis spikecurtis self-assigned this Jan 17, 2024
@spikecurtis spikecurtis marked this pull request as ready for review January 17, 2024 11:38
Copy link

@cdr-bot cdr-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is a hotfix and has been automatically approved.

  • ✅ Base is main
  • ✅ Has hotfix label
  • ✅ Head is from coder/coder
  • ✅ Less than 100 lines

@spikecurtis spikecurtis merged commit b173195 into main Jan 17, 2024
@spikecurtis spikecurtis deleted the spike/11659-revert-11653 branch January 17, 2024 11:38
@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

multiple flakes on /api/v2/users/first
1 participant