2
0
Fork 0
Commit Graph

72 Commits

Author SHA1 Message Date
Stefan Bühler 4a4fd8fd11 [core] include and use hedley (v15) header
hedley is a single header to handle compiler-specific features:
https://nemequ.github.io/hedley/

Prefer headly macros over glib for now.

Change-Id: I3c67ebee0d43e27fde6402d47788e1045144e864
2021-08-05 12:29:46 +02:00
Stefan Bühler 6a0e57ec8f [parsers] fix unused variable warnings
Change-Id: Ifc0210235ada102e2dbcba23e1179e87b973510f
2016-08-27 11:32:23 +02:00
Stefan Bühler 66bd6b22a2 track event "names" for debugging
Change-Id: Ib8f2b589a6087de2355906a87bd2cd0c84bafcba
2015-01-17 15:16:29 +01:00
Stefan Bühler d58d98a62d [value] move value functions that depend on angel / main implementations into separate file, included in the other implementations
this fixes building with --no-undefined. also link with libm in cmake.
2014-05-22 14:58:26 +02:00
Stefan Bühler 928d5dcb5e [angel] don't load angel core plugin for shut down, so the core plugin doesn't respawn a worker with default settings 2014-05-22 12:44:48 +02:00
Stefan Bühler c30060e0eb [angel] check setgid/setuid/... return values and abort on failure 2014-05-16 17:23:27 +02:00
Stefan Bühler ed7e70d0b4 [angel] fix missing break in switch statement in config parser for casting string to int 2014-04-15 11:22:15 +02:00
Stefan Bühler 118844573c [angel] fix memory leak on error in angel config parser 2014-04-15 10:39:14 +02:00
Stefan Bühler 17a5168793 [core] convert all assert() to LI_FORCE_ASSERT(), and support writing backtraces on fatal errors with libunwind 2014-04-11 11:40:24 +02:00
Stefan Bühler 074f53744a [angel] merge allow_listen_* items
* allow_listen_ip ".." -> allow_listen ".."
 * allow_listen_unix ".." -> allow_listen "unix:.."
 * allow_listen also takes lists of strings
2014-04-10 12:40:08 +02:00
Stefan Bühler 22d186cecc [angel] rewrite config handling, rename items, document it
* remove "instance { ... }" wrapping
  * use "_" instead of "-"
  * modules -> modules_path
  * allow_listen { ip "..."; } -> allow_listen_ip "...";
  * allow_listen { unix "..."; } -> allow_listen_unix "...";
2014-04-10 12:40:08 +02:00
Stefan Bühler dfaab291d9 [angel] rewrite parser, changing syntax (similar to main config) 2014-04-10 12:40:08 +02:00
Stefan Bühler db58828e0b [common] refactor liValue to share most of the code
* removing unused "range" value type in angel
2014-02-06 14:01:20 +01:00
Stefan Bühler d529150a9b [autotools] remove generated ragel parsers from dist 2014-02-04 13:22:01 +01:00
Stefan Bühler ccd512ca57 [waf] remove waf for now, doesn't work anymore 2013-08-18 18:42:15 +02:00
Stefan Bühler 05e058aa9c fix bugs and warnings reported by clang
* fix memset sizeof() bugs
 * fix unaligned memory access
 * fix warnings for casts with alignment change
 * crypt_r needs _GNU_SOURCE
2013-06-08 20:11:23 +02:00
Stefan Bühler 38aad8128e [angel,tests] implement and use "one-shot" option to not restart crashed workers 2013-05-31 20:47:43 +02:00
Stefan Bühler 7f61ca9dba disable some debug messages 2013-05-26 18:59:44 +02:00
Stefan Bühler 31e581456d [core] use TCP_FASTOPEN on listening sockets if available 2013-05-25 16:15:14 +02:00
Stefan Bühler 709296d796 fix bugs and warnings from compiler warnings (memset parameter order, shadow, ...) 2013-05-25 12:59:14 +02:00
Stefan Bühler cfd8955008 [common] implement libev wrapper
* need a way to mark a watcher as "don't keep the loop alive"
2013-05-23 17:56:23 +02:00
Stefan Bühler 9c80becca2 [angel] Remove unsupported pid-file option 2011-04-12 10:53:49 +02:00
Stefan Bühler 7a67ba94d7 [autotools]: make sure pkg-config m4 is available in autoconf, check for ragel in ./configure 2010-12-07 23:23:10 +01:00
Stefan Bühler b432e35eeb [angel] Remove "-n" option from angel and docs (wasn't imlemented) 2010-10-02 23:18:31 +02:00
Stefan Bühler c35cf21c52 [log] Add basic api to open log files via angel 2010-09-25 14:13:29 +02:00
Stefan Bühler 0247ee879f [angel/core]: remove old unix socket before binding 2010-09-21 15:17:30 +02:00
Stefan Bühler 876261c62c [core/angel]: Use strict ip matching (family must match, no IPv4-mapped IPv6) 2010-09-21 15:11:48 +02:00
Stefan Bühler 14660bee4f [core/angel]: support unix socket listen 2010-09-21 15:08:16 +02:00
Stefan Bühler 004e70479e [angel]: fix default allow-listen port detection 2010-08-26 18:18:59 +02:00
Stefan Bühler 2ad699f56e [angel] fix segfault if no user was specified 2010-08-26 15:02:11 +02:00
Stefan Bühler b5eb16006c [angel]: fix default worker path 2010-08-26 12:10:16 +02:00
Stefan Bühler 1fb0e6db2c Rename angel config "listen" to "allow-listen" 2010-08-24 21:15:48 +02:00
Stefan Bühler c3164aba8b Move binary names: angel becomes lighttpd2, worker lighttpd2-worker 2010-08-24 21:05:17 +02:00
Thomas Porzelt 86e039e6d2 [core] Add --module-resident commandline parameter to prevent module unloading. Useful for valgrind or tcmalloc 2010-05-06 22:42:47 +02:00
Stefan Bühler c89c194deb Fix module path handling in angel 2010-03-26 13:33:47 +01:00
Stefan Bühler cdb615293c [autobuild] Fix dependency problem with automake (automake doesn't like it if ../dir/ is cwd) 2010-01-24 11:47:58 +01:00
Stefan Bühler edd74a0e3c Rename lighttpd to lighttpd2 2010-01-03 19:53:48 +01:00
Stefan Bühler 4fd27aca81 autotools: Fix linking 2009-12-25 22:38:52 +01:00
Stefan Bühler 79ae4427f3 autotools: install angel in sbin, support pkglibdir configuration 2009-12-23 01:30:28 +01:00
Stefan Bühler 63eadd22fa Fix buildsystems 2009-12-21 21:07:27 +01:00
Stefan Bühler 4d257fd79c angel: Fix detecting failed replace, log successful instance replace 2009-12-13 21:05:43 +01:00
Stefan Bühler 56f01bbc7f angel: listen: Use ntohs for port in debug output 2009-11-22 21:28:24 +01:00
Stefan Bühler b2f2863af4 angel: Add log output for SIGHUP instance restart 2009-11-22 14:48:18 +01:00
Stefan Bühler d949d65110 Add signal number to log 2009-11-22 14:48:18 +01:00
Stefan Bühler 0d4077652f angel: Fix exec problems (NULL-terminate environment) 2009-11-18 20:22:10 +01:00
Stefan Bühler 92904247d6 angel: support for restaring instance with SIGHUP 2009-10-17 23:50:41 +02:00
Stefan Bühler ba40590df6 angel: use rlim_core/rlim_nofile options 2009-10-10 20:34:13 +02:00
Stefan Bühler a151eeac2f Prefix li_ cleanup, verified with nm -g --defined-only 2009-10-09 15:38:12 +02:00
Stefan Bühler 8a180de100 fix limits: call setrlimit in the child 2009-10-07 16:26:37 +02:00
Stefan Bühler e3393ce2f5 angel: add support for setting RLIMIT_CORE / RLIMIT_NOFILE 2009-10-04 14:26:18 +02:00