MINOR: hlua: Save the lua socket's timeout in its context
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 Sep 2023 15:34:24 +0000 (17:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Oct 2023 13:34:03 +0000 (15:34 +0200)
commit0be1ae2fa2d04584027fa09af2e3b54c0a0786b7
tree5345568b7d9b6720de2f47d6ede88297955c8322
parentee687aa18d6182373e3856951313711ddec7ed92
MINOR: hlua: Save the lua socket's timeout in its context

When the lua socket timeout is set, it is now saved in its context. If there
is already a stream attached to the appctx, the timeout is then immediately
modified. Otherwise, it is modified when the stream is created, thus during
the appctx initialization.

For now, the appctx is initialized when it is created. But this will change
to fix issues with the lua sockets. Thus, this patch is mandatory.
src/hlua.c