Commit Graph

3241 Commits

Author SHA1 Message Date
Glenn Strauss 010c28949c [multiple] prefer (connection *) to (srv *)
convert all log_error_write() to log_error() and pass (log_error_st *)

use con->errh in preference to srv->errh (even though currently same)

avoid passing (server *) when previously used only for logging (errh)
2020-07-08 19:54:28 -04:00
Glenn Strauss 644725127f [core] connection_handle_errdoc() separate func 2020-07-08 18:08:52 -04:00
Glenn Strauss c2a16bb228 [core] gw_backend less pointer chasing 2020-07-08 18:08:52 -04:00
Glenn Strauss cec18f4381 [core] gw_exts_clear_check_local() 2020-07-08 18:08:52 -04:00
Glenn Strauss 24680a9142 [core] array_init() arg for initial size 2020-07-08 18:08:52 -04:00
Glenn Strauss a03afc9043 [mod_auth] inline arrays in http_auth_require_t
also, keep ptr to const buffer *realm rather than copy
2020-07-08 18:08:52 -04:00
Glenn Strauss c193da3404 [core] split cond cache from cond matches 2020-07-08 18:08:52 -04:00
Glenn Strauss 5977ce2b4a [core] isolate use of data_config, configfile.h 2020-07-08 18:08:52 -04:00
Glenn Strauss 2ec70f234a [core] stat_cache_path_contains_symlink use errh
use log_error() with con->errh
2020-07-08 18:08:52 -04:00
Glenn Strauss 09ab979f30 [mod_wstunnel] change DEBUG_LOG to use log_error() 2020-07-08 18:08:51 -04:00
Glenn Strauss ba88ff0e93 [core] run all trigger and sighup handlers
(do not bail if a handler returns something other than HANDLER_GO_ON)

(preserve fn signature for simplicity and compat with plugin_fn_data)
2020-07-08 18:08:51 -04:00
Glenn Strauss b73949e03f [multiple] plugin.c handles common FREE_FUNC code
(simpler for modules; less boilerplate to cut-n-paste)
2020-07-08 18:08:51 -04:00
Glenn Strauss ea75c0b87d [core] remove old config_insert_values_*() funcs 2020-07-08 18:08:51 -04:00
Glenn Strauss 2495177131 [core] gw_backend config_plugin_values_init_block
switch gw_backend.c to use config_plugin_values_init_block()
2020-07-08 18:08:51 -04:00
Glenn Strauss 9339b73e0a [core] config_plugin_values_init_block()
split from config_plugin_values_init() for reuse by gw_backend.c
2020-07-08 18:08:51 -04:00
Glenn Strauss 65ef0a3d69 [core] collect more config logic into configfile.c 2020-07-08 18:08:51 -04:00
Glenn Strauss ed62e354ff [core] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss 83633a9f06 [mod_openssl] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss d23071a38f [core] config_get_config_cond_info()
isolate direct use of (data_config *)
2020-07-08 18:08:51 -04:00
Glenn Strauss 4a6fe83837 [multiple] gw_backends config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss 0ad4911d39 [mod_rrdtool] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss 7f3917c1be [mod_rewrite] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss cdf27138fd [mod_redirect] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss 63a6e52ce4 [core] store addtl data in pcre_keyvalue_buffer
reduce pointer chasing in keyvalue.c

mark keyvalue.h config routines as cold
2020-07-08 18:08:51 -04:00
Glenn Strauss f7d1434366 [mod_webdav] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss e38e907f86 [mod_extforward] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss 3fe1827633 [mod_dirlisting] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss 131450da29 [mod_cgi] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss 858352f6e8 [core] add xsendfile* check if xdocroot is NULL 2020-07-08 18:08:51 -04:00
Glenn Strauss 16665ae5f4 [mod_compress] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss c83fcf0564 [mod_deflate] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss 8e713130b3 [mod_auth*] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss 12b11f3042 [mod_maxminddb] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss e2718f85cb [mod_mysql_vhost] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss 2a281ec6ea [mod_vhostdb*] use config_plugin_values_init() 2020-07-08 18:08:51 -04:00
Glenn Strauss d1fba24469 [mod_evhost] use config_plugin_values_init()
use array of buffers to increase performance
(reduce pointer chasing)
2020-07-08 18:08:51 -04:00
Glenn Strauss 28691e6f84 [mod_simple_vhost] use config_plugin_values_init()
replace caching with one-element cache of last directory root

stat_cache is a cache and will handle additional caching, as configured
2020-07-08 18:08:51 -04:00
Glenn Strauss 74bbb3077f [mod_accesslog] use config_plugin_values_init()
inline various structures and use C99 VLA to increase performance
(reduce pointer chasing)
2020-07-08 18:08:51 -04:00
Glenn Strauss adbbc6a4f5 [mod_trigger_b4_dl] use config_plugin_values_init() 2020-05-23 17:59:30 -04:00
Glenn Strauss ca95cea4b5 [mod_evasive] use config_plugin_values_init() 2020-05-23 17:59:30 -04:00
Glenn Strauss b07bc5d266 [mod_geoip] use config_plugin_values_init() 2020-05-23 17:59:30 -04:00
Glenn Strauss 66a460d977 [mod_secdownload] use config_plugin_values_init() 2020-05-23 17:59:30 -04:00
Glenn Strauss 4b0c9c9853 [mod_cml] use config_plugin_values_init() 2020-05-23 17:59:30 -04:00
Glenn Strauss 364939096a [mod_status] use config_plugin_values_init() 2020-05-23 17:59:30 -04:00
Glenn Strauss 3dacea4927 [mod_uploadprogress] use config_plugin_values_init() 2020-05-23 17:59:30 -04:00
Glenn Strauss 5b58e5e47e [mod_ssi] use config_plugin_values_init() 2020-05-23 17:59:30 -04:00
Glenn Strauss be7eb1083a [mod_userdir] use config_plugin_values_init() 2020-05-23 17:59:30 -04:00
Glenn Strauss 28b7d0b656 [mod_userdir] split policy from userdir path build 2020-05-23 17:59:30 -04:00
Glenn Strauss 5fd8e1940e [mod_usertrack] use config_plugin_values_init() 2020-05-23 17:59:29 -04:00
Glenn Strauss 84ccd87b31 [mod_magnet] use config_plugin_values_init() 2020-05-23 17:59:29 -04:00