Develop (#12)
* Refactor carbon-server service in docker-compose.yml to use pre-built image and remove unnecessary build context and volume mounts * Enhance performance and security features: - Update compiler flags for better optimization and security. - Implement MIME type caching for improved response handling. - Introduce worker thread pool for efficient connection management. - Optimize socket settings for low latency and enhanced performance. - Add support for CPU affinity in worker threads. - Implement graceful shutdown for worker threads during cleanup. * Optimize HTTP response handling and increase request limits for improved performance * Add gzip compression support for HTTP responses
This commit is contained in:
2
Makefile
2
Makefile
@@ -13,7 +13,7 @@ CFLAGS = -Wall -Wextra -Werror -O3 -march=native -mtune=native -flto -D_GNU_SOUR
|
||||
CFLAGS += -fPIE -fno-strict-overflow -Wformat -Wformat-security -Werror=format-security
|
||||
CFLAGS += -D_FORTIFY_SOURCE=2 -fvisibility=hidden
|
||||
LDFLAGS = -pthread -Wl,-z,relro,-z,now -pie
|
||||
LIBS = -lssl -lcrypto -lmagic -lnghttp2
|
||||
LIBS = -lssl -lcrypto -lmagic -lnghttp2 -lz
|
||||
|
||||
# Source files and object files
|
||||
SRCS = src/server.c src/config_parser.c src/server_config.c src/websocket.c src/http2.c src/performance.c
|
||||
|
||||
Reference in New Issue
Block a user