mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Websocket re-architecture with websocketd and websocat (#89)
- Replaced beast with websocketd and websocat. #79 #83 #84 - Implemented inbound/outbound peer connection merging. - Added graceful shutdown of hpcore with sigint. #87
This commit is contained in:
@@ -64,6 +64,9 @@ int parse_cmd(int argc, char **argv)
|
||||
*/
|
||||
void deinit()
|
||||
{
|
||||
usr::deinit();
|
||||
p2p::deinit();
|
||||
cons::deinit();
|
||||
proc::deinit();
|
||||
hplog::deinit();
|
||||
}
|
||||
@@ -72,6 +75,7 @@ void signal_handler(int signum)
|
||||
{
|
||||
LOG_WARN << "Interrupt signal (" << signum << ") received.";
|
||||
deinit();
|
||||
std::cout << "hpcore exiting\n";
|
||||
exit(signum);
|
||||
}
|
||||
|
||||
@@ -192,9 +196,7 @@ int main(int argc, char **argv)
|
||||
signal(SIGINT, signal_handler);
|
||||
|
||||
while (true)
|
||||
{
|
||||
cons::consensus();
|
||||
}
|
||||
|
||||
// Free resources.
|
||||
deinit();
|
||||
|
||||
Reference in New Issue
Block a user