Re:Old box, dumb code, few thousand connections, no big deal
by rantwasp on Thursday May 07, 2020 @08:54PM
(#23110220)
went back and looked at it. a webserver written in asm for the lols is okay but my point was that you probably want a proven, battle ready web server (along the lines of nginx or apache) if running something in production. So, 50k rps on a vanilla well used/well maintened server > 50k rps on an experiment (and don't get this wrong, it's pretty impressive for what it is)
[ Parent
| on HN ]
Re:Old box, dumb code, few thousand connections, no big deal
by kragen on Thursday May 07, 2020 @09:04PM
(#23110295)
Yeah, I definitely wouldn't advise anyone to run httpdito in production. It's so lacking in observability that it doesn't even log hits, it doesn't do timeouts, and its MIME types are configured by writing in assembly language. But it shows that some surprising things are possible. And it can be handy to serve up some static pages from your laptop to your phone or whatever.
Re:Old box, dumb code, few thousand connections, no big deal
by rantwasp on Thursday May 07, 2020 @09:39PM
(#23110489)
https://gist.github.com/willurd/5720255 Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000.