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

FD passing sendmsg fails on WSL2 #55

Open
patricoferris opened this issue Mar 16, 2022 · 2 comments
Open

FD passing sendmsg fails on WSL2 #55

patricoferris opened this issue Mar 16, 2022 · 2 comments

Comments

@patricoferris
Copy link
Contributor

At the moment using the latest WSL kernel, the fd passing sendmsg examples are failing with EINVAL. Not sure if this is an issue in the C stubs or something quirky with WSL.

┌──────────────────────────────────────────────────────────────────────────────┐
│ [FAIL]        uring         12   send_msg.                                   │
└──────────────────────────────────────────────────────────────────────────────┘
File "ocaml-uring/tests/main.ml", line 387, character 13:

   Expected: `2'
   Received: `-22'
@talex5
Copy link
Collaborator

talex5 commented Aug 25, 2022

microsoft/WSL#514 says:

We currently only have a support for passing just one file descriptor at a time via unix sockets.
[...]
Just FYI that this should be fixed in 15042.

Maybe that's the problem?

@whentze
Copy link

whentze commented Dec 30, 2022

AFAICT, this functionality was broken on Linux proper too, at least for a while. Here's what I can make of this:

@patricoferris when you opened this issue, the latest kernel for WSL2 was 5.10.93.2 in which fd passing was still banned. By now, you can get 5.15 kernels for WSL2. Can you try it with that?

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