This is a simple multithreaded TCP server written in C that handles HTTP GET requests.
It serves static files from the www/
directory and supports basic error handling.
✅ Handles multiple clients concurrently using pthread
✅ Supports GET requests (no POST support)
✅ Implements basic HTTP/1.0 and HTTP/1.1
✅ MIME type detection for serving different file types
✅ Graceful shutdown with Ctrl+C
(SIGINT)
✅ Timeout handling for inactive clients
To compile the server, use:
gcc server.c -o server -lpthread -g