- Apr 18, 2019
-
-
Vladimír Čunát authored
Originally it's from another branch.
-
Vladimír Čunát authored
The complication is that we need to work with addresses and just file-descriptors passed from some parent process. The former approach lead to logical duplication of some steps; now we add a step converting addresses to file-descriptors. Thanks to that we always do bind() without touching libuv, so the problem with forking disappears :-)
-
Vladimír Čunát authored
That was against docs. Fortunately, nil is falsy.
-
Petr Špaček authored
lua net.interfaces(): fix mac addresses See merge request !804
-
Only the first byte was being shown since 3ab77332. I can't see at all why this part was changed; the buffer is (and was) way overlong for this, so writing one zero byte just after the end is OK.
-
Petr Špaček authored
lib/generic/lru: try to resolve alignof warnings See merge request !802
-
We run meson with -std=gnu11, but apparently some compiler still complained about it. Unfortunately it wouldn't be easy to use standard C11 in this case.
-
- Apr 17, 2019
-
-
Tomas Krizek authored
parts of !797: lua light userdata WIP See merge request !800
-
-
-
The layer functions are supposed to return the new state. We've been lucky that errors are negative numbers and thus they typically passed the (status & KR_STATE_FAIL) test.
-
... for layers and props. This breaks C module API+ABI. It seemed weird to repeatedly call a function that returns a pointer to a structure in which we find the function we want to actually call. We've never used changing these functions AFAIK, and the target functions could easily be written to change their behavior instead (i.e. move the indirection *inside* the function). When breaking this, I also removed these two (_layers and _props) from the dynamic symbols (to be) exported from the C modules. They always pointed to memory belonging inside the module, and they seem quite sensible to be set up by the _init symbol instead.
-
Tomas Krizek authored
dnstap: fix compilation on Turris Omnia Closes #458 See merge request !805
-
- Apr 16, 2019
-
-
Fixes: #458
-
Vladimír Čunát authored
-
Petr Špaček authored
It gets handy for debugging, especially when looking at dufferent callback "instances".
-
- Apr 11, 2019
-
-
Petr Špaček authored
It would be pointless anyway as it cannot provide more information.
-
Petr Špaček authored
As far as I understand the debug.sethook('call') descrption we are not going to have any locals except function parameters so we can simplify the code.
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
DNS-over-HTTP support (server side) Closes #280 See merge request !799
-
Petr Špaček authored
-
Petr Špaček authored
-
Change handling of the inability to get address; it happens occasionally and the traces were disruptive.
-
-
The problem is that C structures are not scanned by lua GC, so we'd have to keep these alive in some other way; therefore it's simpler to just use the mempool.
-
"Unfortunately", for FFI-bound C functions there it doesn't hold that missing parameters would be converted to nil/NULL. Still, this function seems unlikely to have been used outside the repo.
-
It caused crashes somewhere inside LuaJIT or the JIT-ed code.
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
The value is kind of arbitrary, as precaution. 64k value was causing cqueues to close connections with GET requests with "Broken pipe" and it seems to work with 1024 B.
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
This will allow modules like view etc. work in the same way with packets received over HTTP.
-