完善日志系统,修复读取配置文件时的内存泄漏,初步添加熔断机制与指数退避机制
This commit is contained in:
@ -4,7 +4,8 @@
|
||||
#define MAX_POOL 10
|
||||
#define MAX_MESSAGE_BUF 10240
|
||||
#include <pthread.h>
|
||||
#include<tools/log/log.h>
|
||||
#include "tools/log/log.h"
|
||||
#include "erroprocess/erroprocess.h"
|
||||
#include <stdatomic.h>
|
||||
//单个线程模型
|
||||
typedef struct pthread_module
|
||||
@ -29,6 +30,7 @@ typedef struct network_manager
|
||||
pth_m pool[MAX_POOL];
|
||||
int fifo_fd[2];
|
||||
log_manager *logmanager;
|
||||
indiector *err_indictor;
|
||||
int last_alc;
|
||||
int port;
|
||||
int epoll_fd;
|
||||
|
||||
Reference in New Issue
Block a user