Skip to content

Rpc symlink creation race#4805

Merged
rgrinberg merged 4 commits intoocaml:mainfrom
rgrinberg:rpc-symlink-race
Jul 13, 2021
Merged

Rpc symlink creation race#4805
rgrinberg merged 4 commits intoocaml:mainfrom
rgrinberg:rpc-symlink-race

Conversation

@rgrinberg
Copy link
Copy Markdown
Member

We are creating the symlink before the actual socket. Which means that it is possible for the client to observe a dead link. This PR changes the code to create the socket first.

@rgrinberg rgrinberg requested a review from cwong-ocaml July 10, 2021 19:22
Copy link
Copy Markdown
Collaborator

@cwong-ocaml cwong-ocaml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay

There's no need to go through the Path based api

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
Only create the symlink after the socket is created. This prevents
clients from trying to connect through a dead link.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
There's now a sleep function in the Scheduler to make this easier

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
Improve notification method in failed notifications

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
@rgrinberg rgrinberg merged commit ad2b5de into ocaml:main Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants