zhouyu0914k commented on issue #5893:
URL: https://github.com/apache/apisix/issues/5893#issuecomment-1001298438


   I tried to realize it using lua script, but got some trouble. 
   
   The nginx.conf is:
     stream {
       lua_code_cache off;
       server {
           listen 10075;
           content_by_lua_file /usr/local/openresty/test.lua;
       }
     }
   
   The test.lua is:
     while (true)
     do
       ngx.say("Hellow lua!!!")
       os.execute("sleep " .. 5)
     end
   
   I found the script is executed on only the first connection and not on 
subsequent connection. How i can make certain the process mechanism?
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to