Commit Graph

7 Commits

Author SHA1 Message Date
a34ae2a43e Improve HTTPS connection handling and enhance error logging
- Added a delay for non-blocking accept errors in HTTPS server.
- Refactored HTTPS redirection to dynamically allocate response buffer.
- Improved SSL handshake error logging.
- Adjusted shutdown logic to ensure proper socket closure based on HTTPS configuration.
- Fixed memory handling for rate limit IP storage.
2025-10-02 20:17:14 +02:00
93e93064f7 Update .gitignore to include certs/*.pem and fix redirect response formatting in server.c 2025-10-02 11:59:58 +02:00
4aa7a4fef2 Update server.c
Fixed warnings while compiling with makefile
2025-02-25 13:09:57 +01:00
11d28a297f Update server.c
feat: Major server enhancements and build system
- Implemented file caching system with LRU eviction
- Added thread pool for connection handling
- Improved MIME type detection and security headers
- Added rate limiting per IP address
- Enhanced logging system with rotation
- Added proper signal handling and graceful shutdown
- Implemented SSL/TLS support with modern cipher suites
- Added license (MIT) and disclaimer
- Fixed CSS/JS MIME type issues
- Optimized socket configuration
- Added sendfile() optimization
- Improved error handling and memory management

Technical changes:
- Set TCP_NODELAY and optimized socket buffers
- Implemented epoll-based async I/O
- Added file cache with 1MB max file size
- Set 100MB max log file size with rotation
- Added thread pool with 32 max threads
- Implemented rate limiting (100 requests/60s)
- Added proper MIME type detection
- Fixed CSP headers for external resources
- Added comprehensive input sanitization
- Improved SSL context configuration
- Added proper resource cleanup
2025-02-12 20:18:54 +01:00
3abb77876c Update server.c
Fixed minor bugs
Fixed logging system
Optimization 
Redirects to HTTPS when available
2025-02-09 23:51:56 +01:00
2e10dadb34 Update server.c
Added support for basic HTTP and HTTP/s functionality 
Added support for Logging mechanism
Added SSL/TLS support
2025-02-09 13:07:46 +01:00
0b3303a173 Add files via upload 2025-02-08 22:58:48 +01:00