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

Unix sockets #16

Open
mmastrac opened this issue Sep 28, 2023 · 3 comments
Open

Unix sockets #16

mmastrac opened this issue Sep 28, 2023 · 3 comments

Comments

@mmastrac
Copy link
Contributor

mmastrac commented Sep 28, 2023

Deno currently provides the ability to connect to a unix socket. While I believe there is no standard for unix socket addresses URIs, a few ad-hoc standards do exist for this. Ideally the connection standard should make it reasonably easy for implementers to provide additional platform-specific socket types.

Some discussion around this in WhatWG: whatwg/url#577

@dom96
Copy link
Collaborator

dom96 commented Sep 28, 2023

Agreed we need to make a decision on this. From what I see in that WhatWG thread it seems there isn't consensus on how to fit it into the url standard (though I did mainly skim read it).

@jasnell
Copy link
Collaborator

jasnell commented Sep 28, 2023

I think we can go ahead and allow for flexibility here and just say that in connect(destination), the destination MAY be an absolute URL string, and that if it is, it is up to the host implementation to determine if the URL scheme is supported or not.

@jasnell
Copy link
Collaborator

jasnell commented Sep 28, 2023

This would be helpful, btw, if we do end up supporting SNI and ALPN as discussed in other issues. For instance,

connect('https://example.org') could automatically set secureTransport: 'on', set the SNI to 'example.org', and configure the ALPN for h1, etc.

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

No branches or pull requests

3 participants