修复log记录错误(第一个节点无法落盘),更新http解析为现成库实现,优化退出逻辑。

This commit is contained in:
2025-11-21 11:40:08 +08:00
parent 331c6b9f89
commit 26dac05e5b
11 changed files with 30579 additions and 115 deletions

View File

@ -28,10 +28,10 @@ int quit_server(netm *self)
self->http_fd =-1;
}
//关闭socket监听
if(self->fifo_fd[0] != -1)
if(self->fifo_fd[1] != -1)
{
close(self->fifo_fd[0]);
self->fifo_fd[0] = -1;
close(self->fifo_fd[1]);
self->fifo_fd[1] = -1;
}
//关闭管道监听