Arnaud Castellanos Galea

Results 65 comments of Arnaud Castellanos Galea

It wasn't failing randomly, it was returning nil when the directory didn't exist. Now after https://github.com/foundpatterns/torchbear/commit/5692bdca8b2e459c0f027f8382dcfa82c94acba6 it errors. It obviously cannot iterate entries in a non existing directory.

Fixed by https://github.com/foundpatterns/torchbear/commit/aadee3f603c9a1d1dd2ded5d3f579300a704561a

Not a connection info table, but all the data is in the request message

Benchmark: `wrk -t12 -c400 -d30s http://localhost:3000`, result is requests per second (the bigger the better) Lighttouch, without homepage-package, with the regular lighttouch-base version with tantivy and torchbear with tantivy enabled:...

that would be a foreach, but I now think lua is in this case better used as imperative rather than functional (i'm not shure though, i'm not very strong on...

The loop form is simpler or equal to the functional form, and this was moved to lighttouch anyway.

Yeah, this is a good idea. logging broke when I tried this though, but nonetheless it's a good idea.

add it as a `--repl` option and turn off logging when in repl mode

fixed at some point, by using xpcall in [here](https://github.com/foundpatterns/torchbear/blob/5f719b153a43449ddd6104b7362da0b88b4e5617/src/handlers/web_server.lua#L8-L26) and [here](https://github.com/foundpatterns/torchbear/blob/6a3c851a69edb489141c6fbc9488fed7e68a0591/src/lib.rs#L106-L120)