Giter Site home page Giter Site logo

Comments (7)

litespeedtech avatar litespeedtech commented on May 14, 2024 1

there is no lua related log message.
have you built mod_lua module? it uses luajit 2.0.

from openlitespeed.

puleeno avatar puleeno commented on May 14, 2024

I uses luajit 2.0.5 as lib.
PATH: /usr/local/lib/luajit.so

I check the conf file, found that when added module mod_lua line to conf file is faulty.
Failed to RCS checkin conf file /usr/local/lsws/conf/httpd_config.conf0, ret 32512, error(Invalid argument)

from openlitespeed.

litespeedtech avatar litespeedtech commented on May 14, 2024

Did you mean the RCS errors?
If yes, it is not a problem since it just make a backup of your current conf file and these errors are no hurt to the server.
About RCS, please review https://www.gnu.org/software/rcs/

Thanks.
David

from openlitespeed.

miky4u2 avatar miky4u2 commented on May 14, 2024

Osx, just install RCS with homebrew. That will take care of that error. Not related to 'lua' though
http://macappstore.org/rcs/
on centos just yum install rcs

from openlitespeed.

nguyen-tho-mulodo avatar nguyen-tho-mulodo commented on May 14, 2024

@litespeedtech @miky4u2
I will try it! thanks very much! ๐Ÿ‘

from openlitespeed.

litespeedtech avatar litespeedtech commented on May 14, 2024

there is a bug in lua module initialization, please try the following patch:

diff --git a/src/modules/lua/edluastream.cpp b/src/modules/lua/edluastream.cpp
index 8d899939c..3eb42d91c 100644
--- a/src/modules/lua/edluastream.cpp
+++ b/src/modules/lua/edluastream.cpp
@@ -818,11 +818,19 @@ static const luaL_Reg sockMetaSub[] =
 void LsLuaCreateTcpsockmeta(lua_State *L)
 {
     LsLuaApi::openlib(L, LS_LUA ".socket", sockSub, 0);
-    LsLuaApi::pushlstring(L, "__metatable", 11);
     LsLuaApi::newmetatable(L, LSLUA_TCPSOCKDATA);
-    LsLuaApi::pushlstring(L, "__index", 7);
     LsLuaApi::openlib(L, NULL, sockMetaSub, 0);
+
+    LsLuaApi::pushlstring(L, "__index", 7);
+    LsLuaApi::pushvalue(L, -3);
     LsLuaApi::rawset(L, -3);
+
+    LsLuaApi::pushlstring(L, "__metatable", 11);
+    LsLuaApi::pushvalue(L, -3);
     LsLuaApi::rawset(L, -3);
+
+    LsLuaApi::settop(L, -3);       // pop 2
+    
+    
 }
 

from openlitespeed.

puleeno avatar puleeno commented on May 14, 2024

@litespeedtech
Thanks for your support. I install mod_lua successful!
LUA: JIT ENGINE READY

But when I Reload OLS service then Example Virtualhost receive an empty response.

This page isnโ€™t working
42.112.16.145 didnโ€™t send any data.
ERR_EMPTY_RESPONSE

from openlitespeed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.