修复log记录错误(第一个节点无法落盘),更新http解析为现成库实现,优化退出逻辑。
This commit is contained in:
@ -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;
|
||||
}
|
||||
//关闭管道监听
|
||||
|
||||
|
||||
Reference in New Issue
Block a user