Introducing OpenBSD's new httpd [pdf]
I've been going through the code for the last half hour and I really hope this isn't representative of what the OpenBSD group considers to be defensive C programming.<p>Stack allocated buffers, questionable logic and a generally terrible style as well as a complete lack of comments.<p>Don't take my word for it, see for yourself:<p><a href="https://github.com/reyk/httpd/blob/master/httpd/server.c" rel="nofollow">https://github.com/reyk/httpd/blob/master/httpd/server.c</a><p>The "new" is a bit off too, the copyright runs 2006-2015.