Stefan Bühler
dfaab291d9
[angel] rewrite parser, changing syntax (similar to main config)
9 years ago
Stefan Bühler
84325a5a06
[backends: scgi,proxy,fastcgi] update *context immediately after *backend_get
...
- fixes use-after-free, usually caught by an assert in
li_backend_wait_stop
9 years ago
Stefan Bühler
b5edda3bf4
[plugin_core] fix index "/filename" handling
9 years ago
Stefan Bühler
ec6600271a
[config] fix conditional parsing
...
conditional expressions include values to compare with; any
complicated value expression must be put into parantheses.
-> stop parsing after a simple value, don't search for operators,
"and"/"or" operators are handled by the conditional
9 years ago
Stefan Bühler
db58828e0b
[common] refactor liValue to share most of the code
...
* removing unused "range" value type in angel
9 years ago
Stefan Bühler
23be07f40c
[mod_gnutls] don't abort if 'NORMAL:-CIPHER-ALL:+ARCFOUR-128' is not recognized, use 'NORMAL' instead
9 years ago
Stefan Bühler
133941c327
[mod_status] use PACKAGE_BUILD_DATE instead of __DATE__/__TIME__
9 years ago
Stefan Bühler
d529150a9b
[autotools] remove generated ragel parsers from dist
9 years ago
Stefan Bühler
c3b715dae1
remove old test file
9 years ago
Stefan Bühler
f482877825
[doc] document core config and modules in tree
9 years ago
Stefan Bühler
3f61b3c1b1
[mod_proxy] send Content-Length for all non GET/HEAD requests
9 years ago
Stefan Bühler
a6303d8baa
[config] allow setting vars in setup block
9 years ago
Stefan Bühler
0d40b25d19
[config] fix missing reference (segfault on shutdown)
10 years ago
Stefan Bühler
7d22354772
[config] fix cast(string)
10 years ago
Stefan Bühler
56e606bbd7
[config] setup only allowed in master config context
10 years ago
Stefan Bühler
5222d524ad
[plugin_core] fix some setup parameter handling
10 years ago
Stefan Bühler
1a7eec4aa5
[mod_gnutls] disable protect-against-beast by default now - considered mitigated on client side
10 years ago
Stefan Bühler
81ff95db84
[mod_gnutls] announce http/1.1 in ALPN
10 years ago
Stefan Bühler
e55f423203
[config] fix more bugs in new config handling
10 years ago
Stefan Bühler
d65a2ffc16
[mod_redirect] fix segfault in config parsing
10 years ago
Stefan Bühler
04c6aa93cf
[plugin_core] fix alias action
10 years ago
Stefan Bühler
e4c99e55d6
[config] fix bug in config parser (failed parsing names followed by a comma)
10 years ago
Stefan Bühler
4056bd1a43
[config] fix mem leaks in config parser
10 years ago
Stefan Bühler
875995dae5
[config] fix bugs in new config handling
10 years ago
Stefan Bühler
8037af605f
replace g_hash_table_contains with g_hash_table_lookup
10 years ago
Stefan Bühler
eb19c66524
[lua] fix key-value list handling and export of lists
10 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
a1fbaab86b
[core/modules] refactor config handling
...
* should be more robust now: taking list of wanted value, handling NULL
pointers instead of value type NONE, fixed some bugs (wrong checks,
mem leaks, ...)
* add many methods to make handling of values easier; most methods
can handle NULL value pointers safely (li_value_type(v) instead of
v->type and so on)
10 years ago
Stefan Bühler
b783bd5aaa
[misc] use less C99 features
10 years ago
Stefan Bühler
061b2a4262
[core] handle differences between options/actions/setups in plugin.c
10 years ago
Stefan Bühler
898e0c4687
[log] fix small mem leak
10 years ago
Stefan Bühler
cebb8df82c
[mod_vhost] fix config mem leak
10 years ago
Stefan Bühler
ad687636e9
[lua] push list values with __index metamethod to lookup string/nil keys in key-value lists
10 years ago
Stefan Bühler
9f9fe72d97
[lua] fix usage of lua_typename
10 years ago
Stefan Bühler
f9d0abac66
[lua] add lighty.error -> lighty.print alias
10 years ago
Stefan Bühler
0adefe5f18
[mod_memcached] convert to handling key-value list
10 years ago
Stefan Bühler
9430a8a112
[mod_deflate] convert to handling key-value list
10 years ago
Stefan Bühler
9e71dc6890
[core] li_value_to_string: use => for separating hash keys and values like the config
10 years ago
Stefan Bühler
d825212823
[mod_lua] convert to handling key-value list
10 years ago
Stefan Bühler
32e91a9e8a
[core] handle NULL values in li_value_extract* functions
10 years ago
Stefan Bühler
a14d0d00a5
[mod_auth] convert to handling key-value list
10 years ago
Stefan Bühler
74b64a6d1a
[plugin_core] log/setup log: convert to handling key-value list
10 years ago
Stefan Bühler
433d4da14e
[mod_vhost] convert to handling key-value list; make vhost.map_regex predictable
...
vhost.map_regex used to reorder the list to put often used entries at
the top; now it just uses the first matching entry.
new syntax now uses the default keyword for default entries instead of
the string "default".
10 years ago
Stefan Bühler
92dc237ee8
[core] add li_value_new_hashtable to create a GString -> liValue hashtable
10 years ago
Stefan Bühler
7bc6e275ef
[mod_throttle] fix refcount and double free
10 years ago
Stefan Bühler
ccd512ca57
[waf] remove waf for now, doesn't work anymore
10 years ago
Stefan Bühler
3c27596287
[plugin_core] index action should do less stat() calls now, especially for multiple names
10 years ago
Stefan Bühler
919a8dd6d2
[mod_openssl] error out on unknown parameters
10 years ago
Stefan Bühler
dc2f0b7885
[mod_openssl] support key-value list for multiple listen parameters
10 years ago
Stefan Bühler
8eae9f3b50
[mod_gnutls] remove ca-file option; only needed for not yet supported client cert authentication. add docs in the source
10 years ago
Stefan Bühler
c372d21f2c
[mod_gnutls] use key-value list for parameters, allows duplicate listen/pemfile parameters
10 years ago
Stefan Bühler
969818083e
[core] add li_value_to_key_value_list: convert value hash to key-value list
10 years ago
Stefan Bühler
ab47f9b33c
[mod_gnutls] fix endless loop in client hello parser
10 years ago
Stefan Bühler
36b901afa7
[mod_gnutls] fix build with SNI disabled
10 years ago
Stefan Bühler
40169d5fc9
[autobuild] fix renamed header ssl_client_hello_parser.h
10 years ago
Stefan Bühler
a7f41b9e3b
[core] check for disabled keep-alive early to send matching headers
10 years ago
Stefan Bühler
975ca1cddf
[mod_gnutls] parse client hello for sni and protocol version
...
changing priority in gnutls post_client_hello didn't work with session
resumption
10 years ago
Stefan Bühler
c51d89fe6e
[mod_openssl] disable SSL3 by default
10 years ago
Stefan Bühler
0b8365ca29
[mod_openssl] enable DH and ECDH
10 years ago
Stefan Bühler
b9d77f50a4
[core] add req_header.* actions
10 years ago
Stefan Bühler
f3436e69f1
[gnutls] fix cleanup order (use-after-free)
10 years ago
Simon Lundström
859da7d7eb
[plugin_core] docroot: show stat() errors for all entries when debug log is enabled
10 years ago
Stefan Bühler
f64ba1bb72
[fastcgi] add debug prints before all fastcgi_reset calls, don't reset connection on stderr data if connection was already closed
10 years ago
Stefan Bühler
9aafe5aa2a
[fetch] use signed integers for liFetchDatabase refcount
10 years ago
Stefan Bühler
e762189fb5
[core] only use feature test macros on linux
10 years ago
Stefan Bühler
bfa1395937
[throttle] fix connection throttling refill calculation
10 years ago
Stefan Bühler
a1170b3aec
[mod_gnutls] fix segfault when no sni backend was configured
10 years ago
Stefan Bühler
d5bb6003dc
include lighttpd/settings.h instead of base.h in common source
10 years ago
Stefan Bühler
8f42bbe7b4
[gnutls filter] fix cork handling
10 years ago
Stefan Bühler
b9fadd3db3
[ssl_sni_parser] debugging, fix parser bug (wrong shift)
10 years ago
Stefan Bühler
85fc9dbb6d
[mod_gnutls,fetch api] associate sni certs with dh params, fix fetch bug
10 years ago
Stefan Bühler
796f6b1547
[mod_gnutls] send alerts instead of aborting, allow safe renegotiations
10 years ago
Stefan Bühler
3d86ada352
add ssl_sni_parser.h to make dist
10 years ago
Stefan Bühler
92f0a5f237
[mod_gnutls] add sni-fallback-pemfile option
10 years ago
Stefan Bühler
8d417cec1b
[mod_gnutls] fix compile error when compiling without SNI
10 years ago
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
10 years ago
Stefan Bühler
392e7bb823
[mod_gnutls] add SNI
10 years ago
Stefan Bühler
95f63fc0cf
[core] add global named fetch pool; all backends have to return strings. implement a simple backend.
10 years ago
Stefan Bühler
2bcb880dc8
[core] implement generic "fetch" api
10 years ago
Stefan Bühler
86c93c6256
[mod_gnutls] use 4096-bit DH params by default
10 years ago
Stefan Bühler
2cc5eb90d6
[mod_gnutls] actually use dh params loaded from file
10 years ago
Stefan Bühler
9a70d79f66
[mod_gnutls] add memory session database
10 years ago
Stefan Bühler
c15deb44a4
[mod_gnutls] support DH parameters, use pregenerated 3247 bit parameter by default
10 years ago
Stefan Bühler
f4280dca8b
[mod_gnutls] session ticket support
10 years ago
Stefan Bühler
c49cf3696f
[mod_gnutls] fix beast workaround (force RC4 on TLS1.0 and SSL3.0)
10 years ago
Stefan Bühler
97dbcf7e42
[core] add option to disable buffering large request bodies on disk - forward them to backend directly instead
...
- right now only mod_fastcgi can handle this (it won't set the CONTENT_LENGTH env var, the backend
has to support this too)
10 years ago
Stefan Bühler
38aad8128e
[angel,tests] implement and use "one-shot" option to not restart crashed workers
10 years ago
Stefan Bühler
64cabac477
[core] fix connection timeout handling
10 years ago
Stefan Bühler
5e4a94b0c6
[core] handle Connection: Upgrade
10 years ago
Stefan Bühler
5e0a58be53
[stream-http-response] support chunk encoded responses
10 years ago
Stefan Bühler
3deb7c9e79
[core] support chunked uploads
10 years ago
Stefan Bühler
4706cc5f60
Fix filedescriptor/socket leaking
10 years ago
Stefan Bühler
00926c8049
[mod_openssl,mod_gnutls] fix missing disconnect (mem leak), free buffers (mem leak)
10 years ago
Stefan Bühler
42b49307b9
[mod_fastcgi] next try to fix use after free
10 years ago
Stefan Bühler
bb018b091a
[mod_fastcgi] fix use after free
10 years ago
Stefan Bühler
6e6e8792de
[filter] don't run filter on stream-dest connect
10 years ago
Stefan Bühler
7f61ca9dba
disable some debug messages
10 years ago
Stefan Bühler
44f56b034f
[filters] fix memleak
10 years ago
Stefan Bühler
8a65b5e7aa
[throttle] fix memory leak
10 years ago
Stefan Bühler
0857befb7f
fix handling of new connection state
10 years ago