Shutting down a Standalone Server
HydraExpress supports shutting down a service from within the service implementation through class rwsf::ServiceShutdownException.
In the case of HTTP and HTTPS transports, for any request that results in this server exception, the server sends a 500 “Internal Server Error” response back. For a standalone HTTP or HTTPS server, the listener shuts down and subsequent requests fail. The thread that contains the listener object can then call the method isStopped() to see if has been shut down.
For more information, see the class description for rwsf::ServiceShutdownException.