Skip to content

Feature/looper http

aoqi requested to merge feature/looper-http into main
  • 引入 Context 单例,实现 mainStrand / reportStrand 双线程调度
  • 新增 ReportLooper,每 5 秒触发 FlushPendingReports 读库上报
  • BuriedReport::Report() 改为异步加密入库,销毁时通过 DrainStrand 退出
  • FlushPendingReports 改为批量 JSON 数组 POST,成功后再删库
  • HttpReporter 新增 Timeout()(默认 10 秒),每次请求使用独立 io_context
  • BuriedDb 增加 mutex,保证多线程读写安全
  • 补齐单测至 50 个,新增内嵌 HTTP Server 联调测试
  • 按 Review 调整:#pragma once、string_util、UUID 随机生成、json_impl 合并

Merge request reports

Loading