-
Notifications
You must be signed in to change notification settings - Fork 97
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 select #160
Add select #160
Conversation
ea39f97
to
4e87df9
Compare
I think it makes more sense to use an API like SyscallConn for this, although I'm also not sure why you wouldn't just let receive wait on the socket since the runtime handles it in an efficient way. https://godoc.org/github.com/mdlayher/netlink#Conn.SyscallConn |
Ok it works by using SyscallConn. I need this to prevent to be blocked by recvmsg because the func which make the syscall need to return some results. As nftables: I think it's better to have it directly in this lib but you can close this PR if you want ;) |
Related to google/nftables#88 |
It could be worth pursuing something like this as an internal change to unblock issues like #136, but I don't want to expose this API directly. Will close this, but thanks for your time. |
Allow
select
to this kind of design:I need this to trying reproduce behaviors of nftables which check with
select
before doing arecvmsg
, example of strace: