Enhance server configuration and performance optimizations

- Added max_connections option to server configuration
- Updated Makefile to include performance.c and related headers
- Implemented memory-mapped file caching and buffer pooling for improved performance
- Refactored config parser to handle new configuration options
- Increased maximum request size and optimized file handling
This commit is contained in:
2025-10-03 22:08:55 +00:00
parent b5a30a5268
commit 46b653efe0
8 changed files with 624 additions and 121 deletions

View File

@@ -14,12 +14,12 @@ LDFLAGS = -pthread
LIBS = -lssl -lcrypto -lmagic -lnghttp2
# Source files and object files
SRCS = src/server.c src/config_parser.c src/server_config.c src/websocket.c src/http2.c
SRCS = src/server.c src/config_parser.c src/server_config.c src/websocket.c src/http2.c src/performance.c
OBJS = $(SRCS:.c=.o)
TARGET = server
# Header files
HEADERS = src/server_config.h src/websocket.h
HEADERS = src/server_config.h src/websocket.h src/http2.h src/performance.h
# Include directories
INCLUDES =