Commit Graph

3281 Commits (8422fa4573fefbae98c9cbdd6fbaab8f04351ad2)
 

Author SHA1 Message Date
Glenn Strauss 33430ce2b0 [core] copy some srv->srvconf into con->conf
(for memory locality and to reduce pointer chasing)
3 years ago
Glenn Strauss 5bbe58728d [core] perf: buffer copy and append
reorder some code
add more const
avoid redundant asserts
3 years ago
Glenn Strauss 0d62b8657b [mod_webdav] use copy_file_range() if available 3 years ago
Glenn Strauss 3f7779d247 [core] restart dead piped loggers every 64 sec
(when piped logger exited too quickly after being restarted
 and when server.max-worker = 0)
3 years ago
Glenn Strauss 2c18090216 [core] remove include base.h where unused 3 years ago
Glenn Strauss 66bdd96d36 [core] isolate stat_cache subsystem
stat_cache.c no longer directly uses struct server *srv
3 years ago
Glenn Strauss 8588772caa [core] isolate fdevent subsystem
fdevent.c no longer directly uses struct server *srv
srv->srvconf.max_fds (if set) is used to set rlimits
set max_conns in server.c after fdevent_init(), which sets srv->max_fds
  using srv->srvconf.max_fds (if set) as input hint
3 years ago
Glenn Strauss 6dfe0b9a16 [core] slightly simpify server_(over)load_check() 3 years ago
Glenn Strauss 48004c6a7c [core] remove unused arg to fdevent_fcntl_set_nb* 3 years ago
Glenn Strauss 05cc88ddb4 [multiple] omit passing srv to fdevent_handler 3 years ago
Glenn Strauss fda01e3305 [core] support multiple error logs
e.g. different server.errorlog for different virtual hosts

Also, support different server.breakagelog to have separate script
error logs, applicable to mod_cgi and mod_ssi exec.
3 years ago
Glenn Strauss 19985261b2 [core] convenience macros to check req methods 3 years ago
Glenn Strauss 27e27e5e40 [core] static buffers for mtime_cache 3 years ago
Glenn Strauss b4a0ec05fd [core] include settings.h where used 3 years ago
Glenn Strauss 4069dc2ad7 [mod_accesslog] flush file log buffer at 8k size 3 years ago
Glenn Strauss f7d492ae0e [mod_webdav] large buffer reuse
employ chunk_buffer_acquire() and chunk_buffer_release()
3 years ago
Glenn Strauss 3cd74a16a2 [core] fdevent uses uint32_t instead of size_t 3 years ago
Glenn Strauss d5fd52ee86 [core] separate log_error_open* funcs
separate log_error_open* funcs to open breakagelog, filename, syslog
3 years ago
Glenn Strauss 6c1d57a29a [core] store log filename in (log_error_st *) 3 years ago
Glenn Strauss 1dd58c5ad8 [multiple] con->proto_default_port 3 years ago
Glenn Strauss 034d7d6734 [core] http_request_host_policy w/ http_parseopts
pass http_parseopts arg (instead of con) to http_request_host_policy()
3 years ago
Glenn Strauss 4fb26ea3b7 [core] http_status_set_error_close() 3 years ago
Glenn Strauss cbdbd60b35 [multiple] quiet clang compiler warnings 3 years ago
Glenn Strauss ca97505a72 [multiple] store srv->tmp_buf in tb var
rather than using srv->tmp_buf directly in code modifying temp buf (tb)
3 years ago
Glenn Strauss 3e8cdb2e54 [core] inline buffer in log_error_st errh 3 years ago
Glenn Strauss e50aa1b01f [core] (minor) config_plugin_keys_t data packing 3 years ago
Glenn Strauss 0ff60d8218 [multiple] rename r to rc rv rd wr to be different
variable rename
3 years ago
Glenn Strauss 03b4c993d2 [multiple] generic config array type checking 3 years ago
Glenn Strauss 81c9d0acf1 [mod_expire] parse config into structured data 3 years ago
Glenn Strauss 68d8d4c532 [multiple] stat_cache singleton 3 years ago
Glenn Strauss b5775b9951 [multiple] reduce direct use of srv->errh 3 years ago
Glenn Strauss c8cd7cf49b [multiple] extern log_epoch_secs
replace srv->cur_ts
3 years ago
Glenn Strauss 409bba80b1 [multiple] reduce direct use of srv->cur_ts 3 years ago
Glenn Strauss 68c58c162b [core] log_error_multiline_buffer()
replaces log_error_write_multiline_buffer()
3 years ago
Glenn Strauss 6f39097ab6 [core] pass con around gw_backend instead of srv 3 years ago
Glenn Strauss 304e46d4f8 [core] default chunk size 8k (was 4k) 3 years ago
Glenn Strauss de73b190a4 [core] read up-to fixed size chunk before fionread 3 years ago
Glenn Strauss f24e6d696a [multiple] plugin_stats array
use global rather than passing around (server *) just for that

li_itostrn() and li_utostrn() return string length
(rather than requiring subsequent strlen() to find length)
3 years ago
Glenn Strauss 50bdb55de8 [multiple] connection hooks no longer get (srv *)
(explicit (server *) not passed; available in con->srv)
3 years ago
Glenn Strauss 0fcd51438d [core] create http chunk header on the stack
streamline code in http_chunk.c
3 years ago
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)
3 years ago
Glenn Strauss 644725127f [core] connection_handle_errdoc() separate func 3 years ago
Glenn Strauss c2a16bb228 [core] gw_backend less pointer chasing 3 years ago
Glenn Strauss cec18f4381 [core] gw_exts_clear_check_local() 3 years ago
Glenn Strauss 24680a9142 [core] array_init() arg for initial size 3 years ago
Glenn Strauss a03afc9043 [mod_auth] inline arrays in http_auth_require_t
also, keep ptr to const buffer *realm rather than copy
3 years ago
Glenn Strauss c193da3404 [core] split cond cache from cond matches 3 years ago
Glenn Strauss 5977ce2b4a [core] isolate use of data_config, configfile.h 3 years ago
Glenn Strauss 2ec70f234a [core] stat_cache_path_contains_symlink use errh
use log_error() with con->errh
3 years ago
Glenn Strauss 09ab979f30 [mod_wstunnel] change DEBUG_LOG to use log_error() 3 years ago