evo-lua / evo-luvi

[Obsolete] Experimental Lua runtime environment built on Luvi (libuv + LuaJIT)
https://evo-lua.github.io
Apache License 2.0
1 stars 0 forks source link

Prototype libwebsockets integration (for HTTP/S and WebSockets support) #29

Open rdw-software opened 2 years ago

rdw-software commented 2 years ago

Source: https://github.com/evo-lua/evo/issues/28

Goal: Implement HTTP, HTTP2, DNS, HTTPS, WS protocols in a way that's more secure/stable than rolling our own or relying on Luvit's implementation (and porting from Node is too risky/too much work)

Progress:

rdw-software commented 2 years ago

Kinda stuck with this one; the documentation isn't great and there are some annoying issues:

  1. libuv doesn't expose the event loop directly to Lua, so it can't be passed to libwebsockets
  2. I can't get even the basic "hello world" example running via the ffi, since it keeps segaulting (presumably, there's no error) and I'm not familiar enough with the internals to understand what's wrong in a reasonable timeframe

I guess that means this is shelved until further notice. I'd still like to integrate lws, but I don't want to spend my free time bashing my head against these kinds of low-level problems if there's no sane way to debug the crashes.