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

Admin same port fix #4558

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Admin same port fix #4558

wants to merge 1 commit into from

Conversation

egor-ryashin
Copy link
Contributor

No description provided.

Comment on lines +56 to +60
func noReusePort(network, address string, conn syscall.RawConn) error {
return conn.Control(func(descriptor uintptr) {
syscall.SetsockoptInt(int(descriptor), syscall.SOL_SOCKET, syscall.SO_REUSEADDR, 0)
})
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like a potentially dangerous thing to change. Have you found any references to indicate it is safe to use? Issues I'm worried about:

  • Will it work on WSL?
  • What if someone restarts Rill rapidly – might they get a port error then? For example if the browser is still trying to connect.
  • Could it impact restarts in production?

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