mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-24 05:35:53 +00:00
feat: Graceful shutdown with old web server (#2786)
- Stop accepting connections during graceful shutdown in the old web server - Stop all the services before Clio exits - Move cache saving into stop callback
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include <boost/beast.hpp>
|
||||
#include <boost/beast/core/error.hpp>
|
||||
|
||||
#include <concepts>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
@@ -39,4 +40,14 @@ concept SomeServerHandler =
|
||||
{ handler(req, ws) };
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief A tag class for server to help identify Server in templated code.
|
||||
*/
|
||||
struct ServerTag {
|
||||
virtual ~ServerTag() = default;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
concept SomeServer = std::derived_from<T, ServerTag>;
|
||||
|
||||
} // namespace web
|
||||
|
||||
Reference in New Issue
Block a user