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

Deno.listen w/ unix transport on Windows #18236

Open
Hexagon opened this issue Mar 16, 2023 · 2 comments
Open

Deno.listen w/ unix transport on Windows #18236

Hexagon opened this issue Mar 16, 2023 · 2 comments

Comments

@Hexagon
Copy link

Hexagon commented Mar 16, 2023

Not sure if this is supposed to work or not, but I'll give it a shot:

const listener = Deno.listen({ 
    path: "c:\\temp\\my.sock",
    transport: "unix"
});

listener.close()

error: Uncaught TypeError: ops.op_net_listen_unix is not a function

> deno --version deno 1.31.3 (release, x86_64-pc-windows-msvc)

(Windows 10)

C:\WINDOWS\system32>sc query afunix

SERVICE_NAME: afunix
        TYPE               : 1  KERNEL_DRIVER
        STATE              : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
        ```
@GJZwiers
Copy link
Contributor

GJZwiers commented Apr 1, 2023

Supporting Unix sockets on Windows would depend on tokio-rs/mio#1610 I think. Right now you are getting the error because the relevant code is Unix-only and not compiled on Windows.

@dojyorin
Copy link

Good news!
Rust libs team has accepted Windows AF_UNIX implementation.

rust-lang/libs-team#271

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