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

Switch implementation to use sockets #2

Merged
merged 2 commits into from
Apr 30, 2024
Merged

Switch implementation to use sockets #2

merged 2 commits into from
Apr 30, 2024

Conversation

maxmcd
Copy link
Member

@maxmcd maxmcd commented Apr 30, 2024

@tmcw this works and makes the network security space much simpler. We can even now run deno with --deny-net.

@tmcw
Copy link
Member

tmcw commented Apr 30, 2024

Yeah, this is super promising, let's go with this approach

@@ -105,10 +107,15 @@ export const newDenoHTTPWorker = async (

let scriptArgs: string[];

let socketFile = `${Math.random()}-deno-http.sock`.substring(2);
Copy link
Member

Choose a reason for hiding this comment

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

crypto.randomUUID() is probably an easier way to get a random string, and it'll give us filenames that are of a consistent length

@maxmcd maxmcd merged commit 068de3c into initial Apr 30, 2024
1 check passed
@maxmcd maxmcd deleted the unix-sockets branch April 30, 2024 20:24
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