Skip to content

feat(ext/fetch): Parse unix socket and vsock proxies from env var #30377

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lrowe
Copy link
Contributor

@lrowe lrowe commented Aug 11, 2025

Allows configuring a default unix/vsock proxy for upstream requests.

@lrowe lrowe force-pushed the fetch-proxy-unix-vsock-env branch 3 times, most recently from 54b8347 to c0380f9 Compare August 11, 2025 22:26
@lrowe lrowe force-pushed the fetch-proxy-unix-vsock-env branch from c0380f9 to 30657a6 Compare August 12, 2025 16:59
@bartlomieju
Copy link
Member

@lrowe can you give some context on this change?

@lrowe
Copy link
Contributor Author

lrowe commented Aug 22, 2025

Configuring a default upstream unix/vsock proxy is generally useful for cases where you are deploying deno behind a forward proxy and you want to enable requests to sibling endpoints behind the same forward proxy and/or control or cache upstream requests. Having this option for the default HTTP client makes for a cleaner separation between developer and ops concerns.

This is particularly interesting for me because I want to run deno behind kvmserver for per-request isolation in which case making a new connection to a forward proxy listening on a unix socket has much lower overhead than to a reverse proxy on a tcp socket which incurs additional overhead in terms of the network and the extra roundtrip for the CONNECT request.

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.

2 participants