kernelsauce / turbo

Turbo is a framework built for LuaJIT 2 to simplify the task of building fast and scalable network applications. It uses a event-driven, non-blocking, no thread design to deliver excellent performance and minimal footprint to high-load applications while also providing excellent support for embedded uses.
http://turbo.readthedocs.io/
Apache License 2.0
525 stars 84 forks source link

Zero length static file request force near 100% CPU utilisation. #332

Open shadylabs opened 6 years ago

shadylabs commented 6 years ago

Hi, i was struggling to find what causes my web server to go from less than 1% to near 100% load without any connection. It took me more than 2 weeks debugging and i just found that every time someone tries to request robots.txt file my server goes 99.8% cpu. Inspecting the file noticed it is 0 length. After simple cr+lf inside the file the problem was fixed. This is ok for me but in general it is not good. Setup runs latest version of turbo and dependencies on latest 64bit Ubuntu server. Plamen.

kernelsauce commented 6 years ago

I will investigate it this weekend. Should be simple.