Newer
Older

Bug of the day

Date: 2024-01-10
Tags: bug-of-the-day, blog-software

The blog is written in C. Right now it's about 300 lines long, but it doesn't actually display blog articles, just a placeholder. (Update: It's 800 lines and it does)

I can't say it's the most convenient way to write a web app, but it's insightful. Probably one of the fastest, too. Perhaps the next version will run on an FPGA.

The request object contains a file descriptor which the response is written to. I forgot to set the file descriptor, so it defaulted to 0 (defensive programming) and the response was written to the console instead of the socket.

If it wasn't obvious, this serves as a second blog post for testing.