完善日志系统,修复读取配置文件时的内存泄漏,初步添加熔断机制与指数退避机制
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
#include <sys/epoll.h>
|
||||
#include "quit.h"
|
||||
#include "tem/ctl.h"
|
||||
#include "tools/toml/toml.h"
|
||||
|
||||
int quit_server(netm *self)
|
||||
{
|
||||
@ -33,6 +34,7 @@ int quit_server(netm *self)
|
||||
self->fifo_fd[0] = -1;
|
||||
}
|
||||
//关闭管道监听
|
||||
|
||||
}
|
||||
|
||||
void quit_all(int status,void *self_p)
|
||||
@ -63,6 +65,7 @@ void quit_all(int status,void *self_p)
|
||||
free(arg);
|
||||
}
|
||||
}
|
||||
toml_free(resouce->tem->config);
|
||||
free(resouce->tem->command);
|
||||
}
|
||||
//释放终端资源
|
||||
|
||||
Reference in New Issue
Block a user