2
0
Fork 0
Commit Graph

427 Commits (e4c99e55d618716d8a3a70e13750f56a0e07046f)

Author SHA1 Message Date
Stefan Bühler f1f1aacdfe fix glib deprecation warnings 2013-05-23 17:56:24 +02:00
Stefan Bühler a937bd437a fix missing li prefixes 2013-05-23 17:56:24 +02:00
Stefan Bühler 72ec9a432f [throttle] rewrite 2013-05-23 17:56:24 +02:00
Stefan Bühler e0d9c0d602 [core] register server prepare callbacks 2013-05-23 17:56:24 +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 ff69160c34 [core] Use streams 2013-05-23 12:01:04 +02:00
Stefan Bühler b41cc2898a generic backends 2013-05-23 12:01:04 +02:00
Stefan Bühler c450fa82a5 [core] implement streams on chunkqueues 2013-05-22 18:12:15 +02:00
Stefan Bühler ebd5a4ecb3 Fix comment style (//) and add gnutls to automake distcheck 2013-05-21 16:51:15 +02:00
Stefan Bühler 6a33c93231 Revert "[core] implement streams on chunkqueues"
- accidental push, patch not finished yet

This reverts commit 74ce55c860.
2013-05-17 20:27:52 +02:00
Stefan Bühler 74ce55c860 [core] implement streams on chunkqueues 2013-05-17 15:40:20 +02:00
Stefan Bühler 20a63070e2 [chunks] extract to plain memory 2013-05-17 15:40:20 +02:00
Stefan Bühler 092a1b0141 fix bugs found with clang-3.3 -fsanitize=address,undefined 2013-05-17 12:35:25 +02:00
Stefan Bühler 186309f529 [lua] add missing file 2013-05-05 16:22:07 +02:00
Stefan Bühler 0d85a068c8 [lua] add per lua_State lock 2013-05-04 13:11:25 +02:00
Stefan Bühler c1851a6cea [lua] force garbage collection 2013-05-03 18:59:06 +02:00
Stefan Bühler f2ade38923 Release mainaction before stopping workers 2013-05-03 18:57:58 +02:00
Stefan Bühler ff7b73c8a9 [collect] Allow to start collect without worker context 2013-04-10 20:48:16 +02:00
Stefan Bühler 9cb0790052 [core_lua] Forward worker pointer to log functions in some lua functions
This fixes 2 things:
 * won't need global server lock for logging in worker context
 * order of log entries; worker context log gets committed to
   global list in the event loop
2013-01-25 09:57:54 +01:00
Stefan Bühler 01abf704a3 [lua] Use recursive lock for global lua lock 2012-12-06 15:43:11 +01:00
Stefan Bühler 2634c77aae Fix use of deprecated g_strcasecmp 2012-06-16 13:08:57 +02:00
Stefan Bühler b310884f4d [log] Remove (broken) locking for g_printerr in li_log_write_stderr - fputs, the default backend, is thread safe 2012-06-16 13:07:14 +02:00
Stefan Bühler d705276183 [plugin_core] Fix closing data stream for invalid ranges in static handling 2012-04-05 14:55:14 +02:00
Stefan Bühler 5d48ae7102 [log] Add changable log contexts (i.e. references to the real one), so a pointer to such context can be used over a longer period of time 2012-03-17 15:52:19 +01:00
Stefan Bühler a0227182d6 Fix small memleak with server sockets 2012-03-17 15:38:44 +01:00
Stefan Bühler 97bc95a107 [configparser] allow normal actions and setups with the same name 2012-03-17 12:42:55 +01:00
Stefan Bühler b1c45e6a8f [chunk/network] use glib error system to report errors (instead of using virtualrequest context) 2012-03-16 15:44:22 +01:00
Stefan Bühler 77f786ed18 [log] remove different timestamp format handling (one is enough), separate log context (liLogMap) from virtualrequest 2012-03-16 13:25:52 +01:00
Stefan Bühler d173c7d305 [response] fix totally broken response headers if connection header is sent 2012-01-10 08:48:38 +01:00
Stefan Bühler 4c04989bd1 fix compile bugs in previous commits 2012-01-10 01:27:10 +01:00
Stefan Bühler 6ca28bab2b [response handling] fix missing connection header 2012-01-10 01:22:59 +01:00
Stefan Bühler 011aaccabd [http response/request parser] parse method with extra function, fix quoted text, restrict quoted pair 2011-12-19 20:39:50 +01:00
Stefan Bühler 89a32e1504 [chunkqueue] skip setting limit if it is the current one 2011-12-19 16:39:54 +01:00
Stefan Bühler eaf460e3d0 [plugin_core] fix docroot pattern error handling (fixes #2362) 2011-12-18 14:59:28 +01:00
Stefan Bühler 9e215e397f [value] add some functions to handle liValue 2011-11-30 01:00:20 +01:00
Thomas Porzelt 3f12becf59 [plugin_core] add 'map' action, which maps the result of a pattern to a user defined action 2011-11-26 16:32:51 +01:00
Thomas Porzelt a66b6ce8d5 [config parser] rename 'o' liValue variables to 'v'. the name was a relict from option variables 2011-11-26 15:20:40 +01:00
Thomas Porzelt 9f17fd620d [config parser] add 'none' and 'default' keywords 2011-11-26 15:11:39 +01:00
Stefan Bühler a7741a2f22 [core] Ignore connection headers from backends 2011-11-21 11:07:40 +01:00
Thomas Porzelt fc3d0e51e9 [core] fix invalid html in auto-generated responses 2011-11-19 11:32:20 +01:00
Stefan Bühler 3277edabe6 connection.c: optimize buffer usage - don't keep too many unused buffers around 2011-11-18 19:04:42 +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
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
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
Stefan Bühler 0fcbfb7ab7 [core] optimize syscalls per connection 2011-05-04 15:23:53 +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 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
Thomas Porzelt 912976fe30 [core] Attempt to fix issue with stalling connections in throttle pools 2010-12-25 17:40:53 +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
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
Stefan Bühler 0ab5aee623 [throttle] Fix loop counter (leaded to segfaults) 2010-10-19 23:34:46 +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 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 ab9421a5e1 [core] Provide safe wrapper for crypt if crypt_r is not available 2010-10-06 13:47:48 +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 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 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
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 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
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 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
Stefan Bühler abdd422aa9 plugin.c: fix optionptr mem-leak 2010-09-12 17:44:00 +02:00
Stefan Bühler b29c8161f1 Fix mimetypes 2010-09-12 15:55:45 +02:00
Stefan Bühler be65208143 waitqueue: modify callback 2010-09-12 14:19:25 +02:00