haproxy/doc/internals
William Lallemand d0fde90e16 MINOR: lua: add REGISTER_HLUA_STATE_INIT() to register state init callbacks
Add a registration mechanism so that modules outside of hlua.c can hook
into each lua_State creation. Modules call hap_register_hlua_state_init()
(or the REGISTER_HLUA_STATE_INIT() macro) with a callback of the form:

  int my_init(lua_State *L, char **errmsg);

The callback returns an ERR_* code. ERR_ALERT and ERR_WARN trigger
ha_alert()/ha_warning() respectively; any other non-zero errmsg is
emitted via ha_notice(). ERR_FATAL or ERR_ABORT cause exit(1).
Registered entries are freed in hlua_deinit().
2026-06-11 14:13:04 +02:00
..
api MINOR: lua: add REGISTER_HLUA_STATE_INIT() to register state init callbacks 2026-06-11 14:13:04 +02:00
acl.txt
body-parsing.txt
connect-status.txt
connection-header.txt
connection-scale.txt
core-principles.txt DOC: internals: clarify ambiguous wording in core-principles 2026-05-31 16:38:03 +02:00
fd-migration.txt CLEANUP: assorted typo fixes in the code and comments 2021-08-16 12:37:59 +02:00
hashing.txt
list.fig
list.png
listener-states.fig
listener-states.png
lua_socket.fig
lua_socket.pdf
muxes.fig DOC: internal: update the muxes doc to mention the stconn 2022-05-27 19:33:35 +02:00
muxes.pdf DOC: internal: update the muxes doc to mention the stconn 2022-05-27 19:33:35 +02:00
muxes.png DOC: internal: update the muxes doc to mention the stconn 2022-05-27 19:33:35 +02:00
muxes.svg DOC: internal: update the muxes doc to mention the stconn 2022-05-27 19:33:35 +02:00
mworker.md DOC: internals: addd mworker V3 internals 2026-02-04 16:39:44 +01:00
notes-layers.txt
notes-poll-connect.txt DOC: internal: commit notes about polling states and flags on connect() 2022-11-17 16:49:00 +01:00
notes-pollhup.txt DOC: internal: commit notes about polling states and flags 2022-11-17 16:49:00 +01:00
notes-polling.txt CLEANUP: fix typos and spelling in comments and documentation 2026-03-30 09:24:19 +02:00
pattern.dia
pattern.pdf
polling-states.fig
sched.fig
sched.pdf
sched.png
sched.svg
shm-stats-file-description.txt DOC: internals: document the shm-stats-file format/mapping 2025-09-17 11:32:58 +02:00
ssl_cert.dia
stats-v2.txt
stconn-close.txt DOC: internal: add a bit of documentation for the stconn closing conditions 2023-05-23 16:18:19 +02:00
stream-sock-states.fig
thread-exec-ctx.txt DOC: internals: short explanation on how thread_exec_ctx works 2026-03-12 18:28:09 +01:00
threat-model.txt DOC: internals: add a threat model definition 2026-05-31 20:28:08 +02:00
watchdog.txt DOC: watchdog: update the doc to reflect the recent changes 2025-05-21 11:34:55 +02:00