Get the latest tech news
Show HN: Hosting my website using my C web server
Custom web server for my blog. Contribute to cozis/blogtech development by creating an account on GitHub.
I asked Reddit to hack me, which resulted in gigabytes of hilarious and malicious request logs. Linux only Implements HTTP/1.1, pipelining, and keep-alive connections HTTPS support (up to TLS 1.2 using BearSSL) Minimal dependencies (libc and BearSSL when using HTTPS) Configurable timeouts Access logs, crash logs, log rotation, disk usage limits No Transfer-Encoding: Chunked(responds with 411 Length Required, prompting the client to resend with Content-Length) Single core (This will probably change when I get a better VPS) No static file caching (yet) I routinely run the server under valgrind and sanitizers (address, undefined) and target it using wrk.
Or read this on Hacker News