You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have a way to stop a server without having to send a signal to the process; i.e., if the websocketpp server is part of a bigger process and runs in its own thread, it would be nice to be able to just stop() the server instance without affecting the other threads.
endpoint::stop_listening() can be used now to cleanly stop the server from accepting new connections. If you keep a list of all connections you can call close on them individually. Once all connections have been cleanly closed the server run method will exit normally.
At minimum, catch SIGINT and close all connections/write logs cleanly. Consider how this might work on non-unix systems?
The text was updated successfully, but these errors were encountered: