summaryrefslogtreecommitdiff
path: root/platform/src/packet_adapter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/src/packet_adapter.cpp')
-rw-r--r--platform/src/packet_adapter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/src/packet_adapter.cpp b/platform/src/packet_adapter.cpp
index 3075c81..6c83e19 100644
--- a/platform/src/packet_adapter.cpp
+++ b/platform/src/packet_adapter.cpp
@@ -10,6 +10,7 @@
#include "packet_io.h"
#include "packet_stat.h"
#include "packet_handle.h"
+#include "http_healthcheck.h"
#define LOG_MAIN "PacketAdapter"
@@ -225,6 +226,8 @@ int main(int argc, char **argv)
}
}
+ http_healthcheck_server_start(profile);
+
while (!runtime->need_stop)
{
packet_stat_flush(runtime->stat, &runtime->metrics);
@@ -232,6 +235,7 @@ int main(int argc, char **argv)
}
error:
+ http_healthcheck_server_stop();
packet_stat_destory(runtime->stat);
packet_io_destory(runtime->handle);
LOG_CLOSE();