News for hackers. Stuff that matters.
Re:Old box, dumb code, few thousand connections, no big deal by rantwasp on Thursday May 07, 2020 @08:10PM (#23109877)
if you're going to serve static files, nginx absolutely leaves this in the dust (think 50k rps on a beefy machine)
Re:Old box, dumb code, few thousand connections, no big deal by kragen on Thursday May 07, 2020 @08:16PM (#23109915)
I would expect so, but did you mean 500k or something? "50k rps on a beefy machine" sounds like about the same as, or maybe even a bit slower than, 20k–30k on this 2011 laptop, which was how fast httpdito was last time I measured it.
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)
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.
Re:Old box, dumb code, few thousand connections, no big deal by kragen on Friday May 08, 2020 @03:49PM (#23118708)
Yeah, httpdito is similar to those, but maybe with less security holes and definitely with less dependencies.
Re:Old box, dumb code, few thousand connections, no big deal by bdavis__ on Thursday May 07, 2020 @08:14PM (#23109908)
of course it does !!