-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
feat(unstable): add unix domain socket support to Deno.serve #20759
Conversation
{ | ||
signal: ac.signal, | ||
path: filePath, | ||
onListen(info) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot about this in the original description, but we should also be checking that the second argument to this function is a Deno.UnixAddr
, ie: https://deno.land/api@v1.37.1?s=Deno.UnixAddr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. One small comment regarding the second parameter on onListen
which should be the address of the incoming connection.
I'm thinking that if this lands, I can rework my PR to the std to just deprecate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This PR adds unix domain socket support to
Deno.serve
.closes #20369