mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-25 01:10:59 -04:00
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(). |
||
|---|---|---|
| .. | ||
| api | ||
| acl.txt | ||
| body-parsing.txt | ||
| connect-status.txt | ||
| connection-header.txt | ||
| connection-scale.txt | ||
| core-principles.txt | ||
| fd-migration.txt | ||
| hashing.txt | ||
| list.fig | ||
| list.png | ||
| listener-states.fig | ||
| listener-states.png | ||
| lua_socket.fig | ||
| lua_socket.pdf | ||
| muxes.fig | ||
| muxes.pdf | ||
| muxes.png | ||
| muxes.svg | ||
| mworker.md | ||
| notes-layers.txt | ||
| notes-poll-connect.txt | ||
| notes-pollhup.txt | ||
| notes-polling.txt | ||
| pattern.dia | ||
| pattern.pdf | ||
| polling-states.fig | ||
| sched.fig | ||
| sched.pdf | ||
| sched.png | ||
| sched.svg | ||
| shm-stats-file-description.txt | ||
| ssl_cert.dia | ||
| stats-v2.txt | ||
| stconn-close.txt | ||
| stream-sock-states.fig | ||
| thread-exec-ctx.txt | ||
| threat-model.txt | ||
| watchdog.txt | ||