-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add support for Unix domain sockets #64
base: main
Are you sure you want to change the base?
Conversation
I will have a look soon... |
@astei can you rebase as well ? |
Most tests fail. The connect() calls keep returning EINVAL.
7c3bb09
to
0a5f04a
Compare
@normanmaurer rebased |
src/main/java/io/netty/incubator/channel/uring/IOUringDomainSocketChannelConfig.java
Outdated
Show resolved
Hide resolved
@astei seems like all pass ? |
They did not pass on my system (Fedora 33 Workstation, Linux 5.10.x kernel). It’s very strange the CI thinks it’s good. I don’t have a ready explanation for why. |
@normanmaurer when I am back home I will rerun the tests again. |
👍
… Am 02.02.2021 um 21:20 schrieb Andrew Steinborn ***@***.***>:
@normanmaurer when I am back home I will rerun the tests again.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@normanmaurer I have re-run the tests, and the same two tests are failing: https://gist.github.com/astei/e3fc19a705c56a086b83ef8b042ef070 |
Do the same tests also fail when you try to run the epoll tests on netty ?
… Am 03.02.2021 um 06:10 schrieb Andrew Steinborn ***@***.***>:
@normanmaurer I have re-run the tests, and the same two tests are failing: https://gist.github.com/astei/e3fc19a705c56a086b83ef8b042ef070
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@normanmaurer all the epoll transport tests pass, which is very strange. |
Unrelated to this PR: |
@astei the connect error can be fixed by:
This is due the fact of ipv6 mapped ipv4 addresses |
If you like I can also try to check the other error. But most likely not before next week. Let me know @astei |
saw this on jen's twitter. fyi you won't be able to transfer file descriptors because sendmsg cmsghdrs are only allowed on inet(6) + stream... and coming in 5.12 inet(6) + dgram. there's a whole bunch of security issues that were solved with a blunt hammer. |
Well, that fixes 2/3 issues. I'm not a huge fan of adding back |
…ile descriptors for now
@astei sorry for the slow turn around ... I will try to push this over the finish line next week. |
bump |
@astei do you think to rebase? If not I can pick this for the next weeks |
@franz1981 I can try to get this moving again at some point, but it's not been high on my list of priorities. Since submitting this PR I've gone through a few job changes and my current job is pretty far removed from Netty. |
bump |
Motivation:
The io_uring transport does not currently support Unix domain sockets. The epoll transport does, though. There should be parity between the two.
Modifications:
IOUringDomainSocketChannel
,IOUringDomainSocketChannelConfig
, andIOUringServerDomainSocketChannel
classes.I've marked thie PR as a draft for a few reasons:
Transferring file descriptors isn't implemented yet.Appears to be a Linux kernel restriction for security reasons. A future version of Linux may allow for this.IOUringDomainSocketShutdownOutputByPeerTest
fails for some reason.Fixed, reason was IPv6-mapped IPv4 addressesIOUringSocketConnectionAttemptTest
fails withInvalid argument
for a reason that is not clear to me.Result:
The io_uring transport supports Unix domain sockets.