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

fix(dev): use os tmp dir for unix sockets #3179

Merged
merged 2 commits into from
Mar 7, 2025
Merged

fix(dev): use os tmp dir for unix sockets #3179

merged 2 commits into from
Mar 7, 2025

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Mar 7, 2025

This PR reverts #2997 fix for 2.11 with a different solution

issue was that, if one linux user stating a nitro server, it was creating /tmp/nitro/ with permissions for that specific user and any other user would be blocked.

By moving socket to local build dir, we solved this issue but also introduced more possibilities that if permissions of build dir is mixed (used by two users), it causes more issues.

Since after iterations in 2.11, we are now generating an almost reliable unique socket name, we can use /tmp/nitro-{name}.sock instead.

Copy link

cloudflare-workers-and-pages bot commented Mar 7, 2025

Deploying nitrojs with  Cloudflare Pages  Cloudflare Pages

Latest commit: a78b8ad
Status: ✅  Deploy successful!
Preview URL: https://f5816146.nitrojs.pages.dev
Branch Preview URL: https://fix-dev-usock.nitrojs.pages.dev

View logs

@pi0 pi0 merged commit 231c516 into v2 Mar 7, 2025
5 checks passed
@pi0 pi0 deleted the fix/dev-usock branch March 7, 2025 12:30
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.

1 participant