Add support for Windows Registered I/O#604
Conversation
Thomasdezeeuw
left a comment
There was a problem hiding this comment.
One more change then it LGTM
No, because that is used with the |
I don't get it sorry. Also I put the new function with the all feature flag too, should I remove it? |
|
@DBLouis you need to revert all changes to |
|
That makes sense. So I revert the changes for no_inherit, but for registered-io I keep only one function. Should it be feature gated though? It is a windows only flag and a bit niche. |
That's exactly why it should be feature gated. |
|
Is it all good now? Please tell me if it needs more work :) |
Thomasdezeeuw
left a comment
There was a problem hiding this comment.
LGTM. Can you add a test for this? I don't know if there is a way to retrieve if the flag is set, but at the very least I'll like a test that ensure the setting doesn't error.
|
I have added a test. It ran successfully 😁 |
|
Thanks @DBLouis! |
This allows to create socket with the
WSA_FLAG_REGISTERED_IOflag.