Skip to content
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

Exit client empty rcv #1535

Merged
merged 3 commits into from
Jun 21, 2022
Merged

Exit client empty rcv #1535

merged 3 commits into from
Jun 21, 2022

Conversation

raphCode
Copy link
Contributor

fix #1414

did you solve it the same way @tlinford?

This resolves a hang when the server goes away unnoticed (e.g. when it
is killed).
@raphCode raphCode requested a review from tlinford June 21, 2022 16:53
@raphCode raphCode temporarily deployed to cachix June 21, 2022 16:53 Inactive
@raphCode raphCode temporarily deployed to cachix June 21, 2022 16:53 Inactive
@raphCode raphCode temporarily deployed to cachix June 21, 2022 16:53 Inactive
@tlinford
Copy link
Contributor

yep! same exact thing.

@tlinford
Copy link
Contributor

As a sidenote, initially I wanted to do it a bit differently, by having the server react to a sigterm by instructing all clients to exit, to implement a "controlled" shutdown let's say, do you think it's worth looking into that at some point?

@raphCode
Copy link
Contributor Author

Since we need to handle ungraceful disruptions of the communication channel anyways (and now we do on both sides), I don't see a lot of sense in handling SIGTERM on the server side different.
There is only one "official" way to cleanly exit a session and that is initiated through the client. For this case it is okay to notify all clients so they don't report any Errors.

@raphCode raphCode temporarily deployed to cachix June 21, 2022 18:37 Inactive
@raphCode raphCode temporarily deployed to cachix June 21, 2022 18:37 Inactive
@raphCode raphCode merged commit 5d9c428 into main Jun 21, 2022
@har7an har7an deleted the exit_client_empty_rcv branch October 23, 2022 15:07
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.

Zellij does not exit on reboot/shutdown
2 participants