-
Notifications
You must be signed in to change notification settings - Fork 349
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
unix-fd listener should not remove sockets on deregister() #364
Comments
My use case for unix fds are CI tests: Instead of listening on tcp sockets and implementing ways to find free port numbers, I use unix sockets. Then, I can call the server like
While doing tests, somehow the
My workaround for now is to let actix-net listen on a temporary socket and rename it later to the real one. |
I got the same issue with a really simple server which listen on unix socket. Form it it when we go through the
What can we do about it ? Is simply removing the |
actix-server runs
actix-net/actix-server/src/socket.rs
Lines 74 to 84 in 605ec25
This
deregister
function can be called as part of flow control as response toPause
commandactix-net/actix-server/src/accept.rs
Lines 286 to 292 in 605ec25
When resuming operations, the socket file is gone and clients can not connect to the server anymore.
The cleanup should happen only when connection is closed finally (
Stop
command?)The text was updated successfully, but these errors were encountered: