-
Notifications
You must be signed in to change notification settings - Fork 28
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
Windows support #7
Comments
Hi. I work for Microsoft on IoT Edge. We are interested in adding support for unix domain sockets on Windows. They are available now on RS4 (17134), with improvements coming in RS5 in the fall timeframe. We ultimately need support in I don't think rust Thanks! |
@myagley oh wow! Right now this crate doesn't work at all on Windows so adding support, even if it requires a super-new version, should be fine to add at any time I think! We can always work later about having it work "better" on older platforms (for whatever "better" means at the time) |
@damonbarry made https://github.com/Azure/mio-uds-windows which is what we use in Azure/iotedge. It's not directly pullable as a PR in its current state, since it replaces Edit: I've begun integrating it into https://github.com/arsing/mio-uds/tree/windows |
I've updated the branch in my previous comment with a skeleton of the change. It separates the platform-specific parts into a The difficulty here is that a lot of the API needed to implement those is private:
This is why the repo we use for Azure/iotedge duplicates large parts of libstd and mio, including transmuting mio structs to identically defined structs in that crate in some places. This works for Azure/iotedge's use case, but it's obviously not something that we want to upstream. Do you have any ideas how to proceed? |
Ah unfortunately I don't have a ton of time to maintain this crate any more so I may not be much of a help :( If it'd help though I'd be up for transferring this crate to a new owner! |
I'll investigate if it's possible to abstract out the TCP specific parts of mio's Edit: WIP mio change here. |
Given the inclusion of |
I could not find a way to get mio 0.7 running with Windows' uds. So, until tokio-rs/mio#880 (deprecrated/mio-uds#7) is implemented in Mio we use a simple blocking event loop for Windows. That's fine, it's just for the RPC. We could potentially see some load on a server, but it'd be on UNIX so Everything Is Fine ™️. Signed-off-by: Antoine Poinsot <[email protected]>
I could not find a way to get mio 0.7 running with Windows' uds. So, until tokio-rs/mio#880 (deprecrated/mio-uds#7) is implemented in Mio we use a simple blocking event loop for Windows. That's fine, it's just for the RPC. We could potentially see some load on a server, but it'd be on UNIX so Everything Is Fine ™️. Signed-off-by: Antoine Poinsot <[email protected]>
I could not find a way to get mio 0.7 running with Windows' uds. So, until tokio-rs/mio#880 (deprecrated/mio-uds#7) is implemented in Mio we use a simple blocking event loop for Windows. That's fine, it's just for the RPC. We could potentially see some load on a server, but it'd be on UNIX so Everything Is Fine ™️. Signed-off-by: Antoine Poinsot <[email protected]>
I could not find a way to get mio 0.7 running with Windows' uds. So, until tokio-rs/mio#880 (deprecrated/mio-uds#7) is implemented in Mio we use a simple blocking event loop for Windows. That's fine, it's just for the RPC. We could potentially see some load on a server, but it'd be on UNIX so Everything Is Fine ™️. Signed-off-by: Antoine Poinsot <[email protected]>
I could not find a way to get mio 0.7 running with Windows' uds. So, until tokio-rs/mio#880 (deprecrated/mio-uds#7) is implemented in Mio we use a simple blocking event loop for Windows. That's fine, it's just for the RPC. We could potentially see some load on a server, but it'd be on UNIX so Everything Is Fine ™️. Signed-off-by: Antoine Poinsot <[email protected]>
I could not find a way to get mio 0.7 running with Windows' uds. So, until tokio-rs/mio#880 (deprecrated/mio-uds#7) is implemented in Mio we use a simple blocking event loop for Windows. That's fine, it's just for the RPC. We could potentially see some load on a server, but it'd be on UNIX so Everything Is Fine ™️. Signed-off-by: Antoine Poinsot <[email protected]>
I could not find a way to get mio 0.7 running with Windows' uds. So, until tokio-rs/mio#880 (deprecrated/mio-uds#7) is implemented in Mio we use a simple blocking event loop for Windows. That's fine, it's just for the RPC. We could potentially see some load on a server, but it'd be on UNIX so Everything Is Fine ™️. Signed-off-by: Antoine Poinsot <[email protected]>
This is to track implementation status for Windows. This will become feasible.
https://blogs.msdn.microsoft.com/commandline/2017/12/19/af_unix-comes-to-windows/
The text was updated successfully, but these errors were encountered: