21 Commits (53337c81d40b90d3f8daab92c8419522d3a1c0fc)

Author SHA1 Message Date
Stefan Bühler 808cdf301b handle ENAMETOOLONG in various places
- ENAMETOOLONG:
  - static, flv: return 414
  - dirlist, pathinfo: treat as not-existing (i.e. no handling)
- also return 500 instead of closing the connection when stat/open
  fails an unhandled error
- explicit return instead of switch-case fallthrough (no semantic
  change) in actions.c

Change-Id: I1e2dd721dd18544500b4436ada843cb6e7f2db72
6 years ago
Stefan Bühler 3ad9e4cb01 [actions] fix dereference before null check 9 years ago
Stefan Bühler 17a5168793 [core] convert all assert() to LI_FORCE_ASSERT(), and support writing backtraces on fatal errors with libunwind 9 years ago
Stefan Bühler e76ebe2021 [core] rewrite config parser
* no more hash values - only lists and list of key-value pairs
 * "master" config:
   the config loaded on startup can use all features,
   configs loaded later (vhost on demand from sql...) can't use
   include* and cannot modify global vars.
 * scoped variables
   - add a global var store in the server struct
   - global vars can be set with "global foo = bar"
   - if a variable already exists in a scope it will be modified on a
	 write, otherwise a new local variable is created
   - global vars won't be modified if not in "master" mode
   - vars can be made explicitly local with "local foo = bar"; create a
	 local copy with "local foo = foo"
   - globals vars are available in live config loads for reading
   - each file and action block {...} creates a new scope; if/else branches do
	 NOT create a new scope
 * to append a value to a list use "l + [v]" (not "l + v" anymore);
   lists are concatenated with "+"
 * [...] always marks a list
 * (...) is a list if it contains a "," or "=>", otherwise it justs
   groups an expression
 * a list can either contain key-value pairs or other values. mixing is
   not allowed
10 years ago
Stefan Bühler 709296d796 fix bugs and warnings from compiler warnings (memset parameter order, shadow, ...) 10 years ago
Stefan Bühler a937bd437a fix missing li prefixes 10 years ago
Stefan Bühler ff69160c34 [core] Use streams 10 years ago
Stefan Bühler 77ad119f66 [lua]: add subrequests 13 years ago
Stefan Bühler b8a0921265 Add some missing LI_/li prefixes for types and enum values 13 years ago
Stefan Bühler 18fd43840c [mod_balancer] fix typo, and fix balancer handling in action-stack 13 years ago
Stefan Bühler dd0bee3fd6 action_stack: fix balanacer management 13 years ago
Stefan Bühler 5e063e2b04 [core] Enable li_plugins_init_lua again, fixed segfault 13 years ago
Stefan Bühler 26942e6b6c Fix dangling references to action stack 13 years ago
Stefan Bühler 13611b5243 Improve balancer handling 13 years ago
Stefan Bühler 2e4aba7e39 Fix options: missed setting "pointer" options 14 years ago
Stefan Bühler f14103bc2c Split options into two categories: simple (int, bool) and ref-counted pointers 14 years ago
Stefan Bühler 20a8fc4ea8 Allow an action to execute another and rerun after it 14 years ago
Thomas Porzelt a7e15569e1 [core] Add comment for cheap fix introduced in the previous commit 14 years ago
Thomas Porzelt f51e9e6129 [core] Fix segfault when regex condition errors 14 years ago
Stefan Bühler a061745193 Fix bugs found with the static clang analyzer (http://clang-analyzer.llvm.org/) 14 years ago
Stefan Bühler 540ff7db02 Split sources into subdirs 14 years ago