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

Not able retriev files with wildcards along ljsyscall is installed #361

Open CheckTheFlowRyan opened 3 years ago

CheckTheFlowRyan commented 3 years ago

In my index.html I am trying to load a js script (my.js) by:

<body>
<script type="text/javascript" charset="utf-8" src="my.js">
...
</body>

On the server I am using the following:

local webApp = turbo.web.Application:new({
    {"^/$", turbo.web.StaticFileHandler, "/var/www/html/index.html"},
    {"^/(.*js)$", turbo.web.StaticFileHandler, "/var/www/html/"},     
})

All the above works fine as long as I do not install ljsyscall. If I install ljsyscall via luarocks install ljsyscall , I do get following error message, even I do not use syscall at all: [E 2021/05/23 11:23:03] [web.lua] Could not read file; nil.

Once I remove ljsyscall with luarocks remove ljsyscall everthing works fine again.