修复部分bug,添加内存池,为后续内存池化分配打基础

This commit is contained in:
2026-02-18 14:46:33 +08:00
parent 19e0392db6
commit b23828cd5c
8 changed files with 224 additions and 4 deletions

View File

@ -5,11 +5,12 @@
#include <sys/socket.h>
#include <fcntl.h>
#include <errno.h>
#include <netinet/in.h>
#include "errno.h"
#include "tools/log/log.h"
#include "http_rel.h"
#include <netinet/in.h>
int write_in_bk(char input,httpbuf* blk){
if(blk->size%HTTP_BLOCK_SIZE == 0)//块满分配新块