Coder Social home page Coder Social logo

popen in routes.lua? about alilua HOT 5 CLOSED

oneoo avatar oneoo commented on July 24, 2024
popen in routes.lua?

from alilua.

Comments (5)

oneoo avatar oneoo commented on July 24, 2024

try to use eio.readdir :)
https://github.com/oneoo/alilua-coevent-module#eioreaddirpathdir

the popen function may be have a signal make the alilua process close. i'll check this at next week.

and alilua route only match single rule at once.

from alilua.

jots avatar jots commented on July 24, 2024

thanks onenoo.
I just used /bin/ls as an example, popen is really what i'm looking for.

I'm really impressed with alilua's performance. got 40K rps on my laptop with it!

2 things i'd love to see with it:

  1. a simple echo server (no http) can it be done without C?
  2. an https proxy server where requests that come in are not blocked by waiting requests...
    I'm new to lua and trying to figure out how to accomplish those 2 things with alilua.

from alilua.

oneoo avatar oneoo commented on July 24, 2024
  1. alilua netowrk core build on HTTP protocol,so u can't build a simple echo server base on alilua
    but u can use merry + alilua-coevent-module to build a echo server on other protocols
  2. HTTPS will be support at next version :)

from alilua.

oneoo avatar oneoo commented on July 24, 2024

the child process signal bug has been fixed

from alilua.

jots avatar jots commented on July 24, 2024

It works now. thank you!

from alilua.

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.