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:
4
Makefile
4
Makefile
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user