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

Add stat support for osx. #348

Closed kylezhou closed 5 years ago

kylezhou commented 5 years ago

stat support was only available on Linux platform, while serving a static file requires fs.stat, which in turn invokes stat syscall, resulting in error "stdin:1: undeclared or implicit tag 'stat'" This PR added stat support for osx (Darwin) so that serving static file works.