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

Sockets aren't 100% reliable on macOS #379

Open
bell-db opened this issue Sep 23, 2024 · 0 comments · May be fixed by #380
Open

Sockets aren't 100% reliable on macOS #379

bell-db opened this issue Sep 23, 2024 · 0 comments · May be fixed by #380

Comments

@bell-db
Copy link
Contributor

bell-db commented Sep 23, 2024

#367 switched the plugin communication to TCP sockets on macOS. Unfortunately, it's later found that sockets aren't reliable either out-of-the-box on macOS.

TCP sockets

Details: #381

  • The allocated port might be used by other programs.
  • nc (invoked from Bazel) might trigger a security pop-up or fail due to Operation not permitted.

Domain sockets

Details: #382

  • EOF is occasionally lost (unless a server-side read timeout is set).
@bell-db bell-db linked a pull request Sep 23, 2024 that will close this issue
mbland added a commit to mbland/rules_scala that referenced this issue Oct 1, 2024
Added a couple more repo dependencies to targets under //test.

However, `bazel test //test:all` is a bust for now, because the
protoc-bridge mechanism hangs on macOS:

- scalapb/protoc-bridge#366
- scalapb/protoc-bridge#367
- scalapb/protoc-bridge#379
- scalapb/protoc-bridge#380

Though scalapb/protoc-bridge#366 suggests that it only hangs
occasionally, it's hanging 100% of the time for me on macOS 15.0 on a M3
Max.
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 a pull request may close this issue.

1 participant