-
Notifications
You must be signed in to change notification settings - Fork 8
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
Local Sockets as Pipes #186
Comments
I spent some time between writing various things last week to work on this and now have a minimal version that compiles, now needs to be debugged. From @Devansh-Patel work getting the LAMP stack up natively it seems like we can set up gunicorn/wsgi to use domain sockets so I think we won't have to do anything for the "local ip sockets" I reference above. |
As of now I have the main implementation working and passing tests in safeposix/full Lind. Still need to test corner cases and auxiliary system calls that may interact with UD sockets. |
Okay, great!
…On Mon, Aug 1, 2022 at 8:37 AM Nicholas Renner ***@***.***> wrote:
As of now I have the main implementation working and passing tests in
safeposix/full Lind. Still need to test corner cases and auxiliary system
calls that may interact with UD sockets.
—
Reply to this email directly, view it on GitHub
<#186 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGROD3GEZ53HNGLQHCBGD3VW4L4LANCNFSM5M4BWIXQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This branch has been sitting stagnant for awile unmerged while we were waiting to sort out other socket things in RustPOSIX. I think we're ready to try to bring this into the code base. @TristanB22 can you attempt to reconcile the "domsocks-pipes" branch of rustposix with develop? |
@TristanB22 has mostly reconciled these branches but it still needs to be debugged and tested. @justyoyo123 is going to take over from here. |
This works now as of the mega-merge. Thank you to everyone who helped here including @TristanB22 @justyoyo123 @yizhuoliang ! |
We've been successful at increasing IPC performance via pipes (and aim to do better through some mutex optimizations). On the other hand, things in the LAMP stack do IPC via sockets. WSGI uses network sockets locally, and libpq/postgres use local unix domain sockets.
We should be able to model local socket connections in RustPOSIX as a set of two pipes, one in each direction. We should be able to keep track of if a socket is A) created via NaCl/RustPOSIX and B) uses localhost. If so, we should direct RustPOSIX to use these pipes instead of actual sockets.
The text was updated successfully, but these errors were encountered: