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

server: no way to gracefully shut down connection #59

Open
reynir opened this issue May 17, 2023 · 3 comments
Open

server: no way to gracefully shut down connection #59

reynir opened this issue May 17, 2023 · 3 comments

Comments

@reynir
Copy link
Member

reynir commented May 17, 2023

No description provided.

@hannesm
Copy link
Member

hannesm commented May 17, 2023

This doesn't fit your demands? #52

@reynir
Copy link
Member Author

reynir commented May 17, 2023

No, it closes the connection somewhat abruptly (as noted in PR). I'd like to be able to send a message such as "Disconnecting you. Goodbye!" and have that arrive to the client before shutting down.

Edit: using the stop switch the message doesn't arrive to the client before the ssh server stops :/

@dinosaure
Copy link
Member

You probably can do something into the Lwt_switch hook.

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

No branches or pull requests

3 participants