2
0
Fork 0
Commit Graph

1154 Commits

Author SHA1 Message Date
Stefan Bühler ba3d50ba79 [mempool]: use g_free instead of free in ALLOC mode 2011-11-17 21:26:53 +01:00
Stefan Bühler bd5c2f4ebe move profiler code to common lib 2011-11-17 21:25:45 +01:00
Thomas Porzelt bd15bb8f82 [core] fix for previous commit. gc requency was set to 10s not 5min 2011-11-17 19:18:17 +01:00
Thomas Porzelt ab313d20c2 [core] change connection garbage collector algorithm to free all unused connections up to the maximum of active connections during the last 5 minutes 2011-11-17 18:59:09 +01:00
Thomas Porzelt 011380dcb7 [core] change memory profiler output, add minsize parameter to debug.profiler_dump action 2011-11-15 02:01:35 +01:00
Joe Presbrey 60fc8d421d [mod_status] add status_info_auto 2011-11-11 12:31:44 -05:00
Thomas Porzelt cdf183137f [plugin_core] rename 'blank' action to 'respond' and allow optional integer, string or list of integer+string parameters which support patterns 2011-10-17 20:09:48 +02:00
Thomas Porzelt cc1c9a92e2 [config parser] don't allow setup blocks or includes in setup blocks 2011-08-28 15:07:23 +02:00
Thomas Porzelt 2ebf367df5 [config parser] fix detection of conflicts between options and uservars 2011-08-28 14:17:47 +02:00
Thomas Porzelt 04c8356b44 [config parser] change syntax again: user defined variables are now defined as 'x = ...;'. user defined actions are not special anymore 2011-08-28 11:30:35 +02:00
Stefan Bühler abd58794d8 [config parser]: fix crash with nested conditional blocks, fix some warnings 2011-08-25 19:57:08 +02:00
Stefan Bühler d579b8a163 [core]: accept LF instead of CR LF in http requests 2011-08-22 17:30:29 +02:00
Thomas Porzelt 9f832c75ea Config syntax changes and parser fixes:
* Change ":" to "=>" in hash tables
* Change assignments to not need "=" anymore
* User defined actions must now be prefixed with the "action" keyword
* Anonymous user defined actions don't need the "$" prefix anymore
* Fix parsing of conditionals with more than 2 conditions
2011-08-20 11:43:02 +02:00
Stefan Bühler 92ca097ed4 [jobqueue] as jobs in the queue could be removed in a callback we can\'t copy the queue to a private one, g_queue_unlink needs the real one 2011-08-09 20:17:13 +02:00
Thomas Porzelt 496a28f197 [core] truncate temp string before evaluating pattern. add comment to pattern.h that li_eval_pattern() does not truncate the string for you 2011-07-20 20:48:30 +02:00
Thomas Porzelt 259cdb57e3 [mod_accesslog] Fix %r (first request line) formatter 2011-05-09 21:07:54 +02:00
Stefan Bühler 0fcbfb7ab7 [core] optimize syscalls per connection 2011-05-04 15:23:53 +02:00
Stefan Bühler 4f377b792c [utils] fix calculation for sockaddr_un struct size 2011-05-02 12:30:39 +02:00
Stefan Bühler 9c80becca2 [angel] Remove unsupported pid-file option 2011-04-12 10:53:49 +02:00
Stefan Bühler 45f0cf0bf3 Increase timeout for angel-listen 2011-04-12 10:53:24 +02:00
Stefan Bühler 6164ac83c9 [*cgi env]: Fix REQUEST_URI 2011-03-23 14:59:43 +01:00
Stefan Bühler 8973c35562 [utils] Fix url decoding for non ascii values (signed char negatives) 2011-03-22 13:34:10 +01:00
Stefan Bühler eb9f6aa368 [plugins] Fix some default options (the raw default-value is only used when there is no parser method) 2011-01-30 15:51:33 +01:00
Stefan Bühler be50c790e1 [mod_balance]: renamed from mod_balancer 2011-01-23 13:55:36 +01:00
Stefan Bühler d9cc24b8e6 [core]: fix connection/vrequest callbacks to return FALSE after they got reset, so handling stops 2011-01-10 20:00:44 +01:00
Stefan Bühler bf0ece96fb [throttle] Fix segfaults 2011-01-02 13:52:18 +01:00
Stefan Bühler 9c6f894eb5 [mime-types] Fix mimetype insert, add new test cases to catch this 2010-12-30 15:06:10 +01:00
Stefan Bühler 366d00328c Fix bug in delayed connection handling, 2nd try 2010-12-27 16:21:13 +01:00
Stefan Bühler 318b7bf041 Fix bug in delayed connection handling 2010-12-27 16:06:34 +01:00
Thomas Porzelt 912976fe30 [core] Attempt to fix issue with stalling connections in throttle pools 2010-12-25 17:40:53 +01:00
Thomas Porzelt a40a03cc75 [mod_redirect] Fix patterns using %n references 2010-12-17 20:48:48 +01: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 58bc3f8276 [mod_openssl] make sure we get notified for EV_WRITE again 2010-11-26 14:05:05 +01:00
Thomas Porzelt 6c70cba7cb [mod_auth] return 403 instead of 401 in auth.deny 2010-11-13 17:28:49 +01:00
Thomas Porzelt c1fe5047be [plugin_core] Fix cascading in docroot action 2010-11-13 16:25:49 +01:00
Thomas Porzelt 772e66b91c [core] Immediately rearm throttle pool and update con when inserting into pool 2010-11-01 20:09:41 +01:00
Thomas Porzelt 77aa943b38 [mod_auth] Fix segfault in auth_handle_deny() 2010-11-01 18:22:00 +01:00
Stefan Bühler 0ab5aee623 [throttle] Fix loop counter (leaded to segfaults) 2010-10-19 23:34:46 +02:00
Stefan Bühler 9568d7a41a [autotools] add memcached.c 2010-10-14 13:27:24 +02:00
Stefan Bühler 26d9155e87 [pattern] fix endless (memory eating) loop in pattern parsing 2010-10-13 14:46:31 +02:00
Stefan Bühler 11fa781f98 Fix some warnings found with clang analyzer 2010-10-07 18:31:21 +02:00
Stefan Bühler 2941105e28 [pattern] Fix vr->wrk->tmp_str usage, remove pattern.h from base.h, add pattern support to header.add* actions 2010-10-07 16:14:12 +02:00
Stefan Bühler 93e442d5c9 [mod_accesslog] Fix output formatting 2010-10-06 19:03:18 +02:00
Stefan Bühler cd1a0684c7 [utils] fix fd receiving 2010-10-06 17:15:26 +02:00
Stefan Bühler 5b7456de05 [utils unit-tests] use a different test for "fast close after fd send" 2010-10-06 16:57:30 +02:00
Stefan Bühler e3aad8f950 [utils unit-tests] check more details for send/recv fd 2010-10-06 16:48:55 +02:00
Stefan Bühler db6a989677 Fix some warnings 2010-10-06 14:31:11 +02:00
Stefan Bühler f521719737 Fix some link problems with -lcrypt 2010-10-06 14:24:01 +02:00
Stefan Bühler 0db6543682 [core] Fix missing parameter in crypt wrapper 2010-10-06 13:51:30 +02:00
Stefan Bühler ab9421a5e1 [core] Provide safe wrapper for crypt if crypt_r is not available 2010-10-06 13:47:48 +02:00
Stefan Bühler 9dd5a0c4db [mod_balancer] Fix backend selection 2010-10-06 13:44:22 +02:00
Stefan Bühler 67fcc00125 [pattern] Fix regex nth callback, activate env-set pattern range tests 2010-10-05 14:50:21 +02:00
Stefan Bühler 97d6300c62 [plugin_core] Support %n in all pattern evals 2010-10-05 14:44:33 +02:00
Stefan Bühler 9a7dc4ecd6 [mod_vhost] drop vhost.simple / vhost.pattern 2010-10-05 14:40:17 +02:00
Stefan Bühler 01f0c1606f [core] Fix pattern range parser, fix docroot_nth callback 2010-10-05 14:37:33 +02:00
Stefan Bühler 177fc95219 [core] Add phys.docroot and phys.pathinfo 2010-10-05 13:57:26 +02:00
Stefan Bühler 52584c99bb [pattern] Add ranges (and fix match-info handling) 2010-10-05 13:26:03 +02:00
Stefan Bühler eecf0d90be [pattern] Fix handling of escaped characters 2010-10-05 13:25:25 +02:00
Stefan Bühler 688a17372f [tests] Add BadRequest test (and fix the bug), add "status" vhost 2010-10-05 13:16:39 +02:00
Stefan Bühler e440caa9c6 [mod_auth] document that $apr1$ is supported now 2010-10-03 19:59:42 +02:00
Stefan Bühler 49e0a440ed [utils] remove usage of g_checksum_reset (would need glib >= 2.18) 2010-10-03 17:13:50 +02:00
Stefan Bühler 685973a3ca [mod_auth] Fix authentication (has been "disabled")! Implement apr-md5 crypt, add test cases 2010-10-03 15:53:43 +02:00
Stefan Bühler b432e35eeb [angel] Remove "-n" option from angel and docs (wasn't imlemented) 2010-10-02 23:18:31 +02:00
Thomas Porzelt 715a75f0aa [mod_deflate] Add 'compression-level' param to deflate action, defaults to 1 2010-09-26 18:06:16 +02:00
Stefan Bühler 8b75858fea [mod_redirect] fix segfault 2010-09-26 12:47:35 +02:00
Stefan Bühler 19eed747a1 [mod_rewrite] Add rewrite_raw 2010-09-26 12:09:26 +02:00
Stefan Bühler 9b52427d29 [mod_redirect] Use liPattern 2010-09-26 11:56:27 +02:00
Stefan Bühler 9d6eb1394d [mod_rewrite] Use liPattern 2010-09-26 01:04:50 +02:00
Stefan Bühler d6820e5cfd [pattern] Hide pattern-part struct 2010-09-26 01:04:50 +02:00
Thomas Porzelt ce4f9391e3 [core] Fix tiny leak in pattern code when parse errors happen 2010-09-25 23:43:54 +02:00
Stefan Bühler 81236d35bf [memcached] Accept NULL as data for SET 2010-09-25 23:28:17 +02:00
Thomas Porzelt efb04f1f13 [config parser] include: Log warning if no file matches wildcard, error if no wildcard and file not found 2010-09-25 15:55: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 97088f667e Fix typos / missing includes 2010-09-23 21:26:48 +02:00
Stefan Bühler de43e75b75 [core] Disable mmap as we don't handle SIGBUS yet 2010-09-23 21:23:39 +02:00
Thomas Porzelt 31d2291a1c [core] Add support for throttling by IP 2010-09-23 21:01:46 +02:00
Stefan Bühler 8ae6902602 [core] remove lighttpd-glue.h from base.h 2010-09-23 18:35:57 +02:00
Stefan Bühler 3b1a781381 [core] remove encoding.h from base.h includes 2010-09-23 18:28:31 +02:00
Stefan Bühler 7fbcfb86d9 [mod_openssl]: better io event handling (ssl may want to write while lighty only wants to read) 2010-09-23 13:36:07 +02:00
Stefan Bühler 44b86b71be [mod_userdir]: Fix Makefile.am to use the correct source file 2010-09-22 22:12:50 +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 823b9d13c2 [core]: wait for connections before shutdown 2010-09-21 14:33:32 +02:00
Stefan Bühler 1790afc37f [radix]: Fix wrong var in macro, add test cases 2010-09-20 22:54:38 +02:00
Thomas Porzelt 7e94308ea6 [mod_limit] Fix liSocketAddress usage in combination with radix trees 2010-09-20 19:49:49 +02:00
Thomas Porzelt c972bea1e0 [mod_limit] Fix radix tree usage (api wants bits not bytes) 2010-09-19 23:59:15 +02:00
Thomas Porzelt 47bc318a35 [core] Make li_server_ts_format_add() threadsafe 2010-09-19 18:03:11 +02:00
Thomas Porzelt 14d48527af [core] Make log.timestamp creation/destruction threadsafe 2010-09-19 18:00:31 +02:00
Thomas Porzelt 8892840298 [mod_limit] Thread safety fixes 2010-09-19 16:27:10 +02:00
Thomas Porzelt d0ae21c7b2 [config parser] Rename var.PID/var.CWD/env.* to sys.pid/sys.cwd/sys.env.* and add sys.version containing the lighty version 2010-09-19 13:12:02 +02:00
Thomas Porzelt 587c7383ba [core] Add support for req.env/header[key] to patterns 2010-09-18 14:47:11 +02:00
Thomas Porzelt f088e43f62 [plugin_core] Add env.set/add/remove/clear actions 2010-09-18 13:14:28 +02:00
Thomas Porzelt a3b7ce74af [core] Rework throttle-pool handling to be thread-safe in creation/destruction aswell as more accurate and fair throttling 2010-09-12 18:54:57 +02:00
Thomas Porzelt 2a04983b9d [waitqueue] Add 'length' struct member, remove li_waitqueue_length() function 2010-09-12 18:27:09 +02:00
Stefan Bühler abdd422aa9 plugin.c: fix optionptr mem-leak 2010-09-12 17:44:00 +02:00
Stefan Bühler 1567177150 [tasklet]: fix mem leak 2010-09-12 17:33:05 +02:00
Stefan Bühler b29c8161f1 Fix mimetypes 2010-09-12 15:55:45 +02:00
Stefan Bühler 21327b7d93 [mod_progress]: kill global var 2010-09-12 15:08:49 +02:00
Stefan Bühler be65208143 waitqueue: modify callback 2010-09-12 14:19:25 +02:00