Skip to main content

SERVER_RESTART

Constant SERVER_RESTART 

Source
pub const SERVER_RESTART: &str = "server.restart";
Expand description

Restart the app server in place: it answers Ack, stops what it serves (HTTP, sync, the update check, open connections), reads its settings again and serves anew on the same endpoint, in the same process. A client reconnects to reach the new server.

A server that cannot restart itself (one not run by the framework’s restarting entry point) answers an error; a server older than this method answers method-not-found.