You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Christophe Jaillet <ch...@wanadoo.fr> on 2018/06/23 10:44:35 UTC

Question about mod_lua and its 'create_request_config()' hook

Hi,

mod_lua defines a create_request hook (i.e. 'create_request_config()'). 
In this hook, an 'ap_lua_request_cfg' structure is allocated and 
initialized.

However, this structure and its fields seem to be unused.

Axing this hook and memory allocation would same about 200 bytes in the 
request pool when mod_lua is loaded.
We could also remove the 'ap_lua_request_cfg' and 
'mapped_request_details' structures.


Did i miss something obvious or is it really useless?

CJ