Skip to content

Conversation

@tarasglek
Copy link

@tarasglek tarasglek commented Feb 8, 2026

Closes #26160
Note this is coded with an llm. I checked the code and that it works.

Implements unix socket support for deno serve via --unix-socket flag.

Implementation

  • Adds --unix-socket CLI flag in `cli/args/flags.rs` (conflicts with --port/--host)
  • Sets DENO_SERVE_ADDRESS=unix:<path> env var in `cli/tools/serve.rs` before worker starts
  • Runtime picks this up via existing `Deno.serve` env var handling

Test

echo "export default { fetch: () => new Response(\"ok\") }" > server.ts
deno serve --allow-all --unix-socket /tmp/deno.sock server.ts &
curl --unix-socket /tmp/deno.sock http://localhost/
# ok

tarasglek and others added 3 commits February 8, 2026 13:00
Co-authored-by: aider (openrouter/google/gemini-3-flash-preview) <[email protected]>
Co-authored-by: aider (openrouter/google/gemini-3-flash-preview) <[email protected]>
…upport

Co-authored-by: aider (openrouter/google/gemini-3-flash-preview) <[email protected]>
@CLAassistant
Copy link

CLAassistant commented Feb 8, 2026

CLA assistant check
All committers have signed the CLA.

@tarasglek tarasglek force-pushed the taras/unix-socket branch 5 times, most recently from 9eec6a7 to f8f90e8 Compare February 8, 2026 13:03
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.

Suggestion: UnixSocket option for deno serve command

2 participants