2
0
Fork 0
Commit Graph

90 Commits (49796611be603efcff32c2a95dec95cfa55d94f2)

Author SHA1 Message Date
Stefan Bühler f1f1aacdfe fix glib deprecation warnings 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 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 ebd5a4ecb3 Fix comment style (//) and add gnutls to automake distcheck 2013-05-21 16:51:15 +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 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 eaf460e3d0 [plugin_core] fix docroot pattern error handling (fixes #2362) 2011-12-18 14:59:28 +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 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 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 9c6f894eb5 [mime-types] Fix mimetype insert, add new test cases to catch this 2010-12-30 15:06:10 +01:00
Thomas Porzelt c1fe5047be [plugin_core] Fix cascading in docroot action 2010-11-13 16:25:49 +01:00
Stefan Bühler 0ab5aee623 [throttle] Fix loop counter (leaded to segfaults) 2010-10-19 23:34:46 +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 ab9421a5e1 [core] Provide safe wrapper for crypt if crypt_r is not available 2010-10-06 13:47:48 +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 52584c99bb [pattern] Add ranges (and fix match-info handling) 2010-10-05 13:26:03 +02:00
Thomas Porzelt 31d2291a1c [core] Add support for throttling by IP 2010-09-23 21:01:46 +02:00
Thomas Porzelt 14d48527af [core] Make log.timestamp creation/destruction threadsafe 2010-09-19 18:00:31 +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 c7a39e4da1 [core] Fix compilation on non-linux systems 2010-09-11 11:34:06 +02:00
Stefan Bühler 91fda70bca [plugin_core] Fix mixed declarations and code 2010-09-05 14:19:43 +02:00
Thomas Porzelt 582dfa99d7 [core] Rework mimetype lookup code 2010-09-04 14:50:35 +02:00
Thomas Porzelt 9c63e60cb7 [core] Add workers.cpu_affinity setup action 2010-08-29 12:24:30 +02:00
Stefan Bühler b9af60f92d [plugin_core]: don't stat last entry in docroot list, it is used anyway 2010-08-26 13:52:02 +02:00
Stefan Bühler 1c3d3c287f [core]: add tasklet pools to workers and use them for stat-cache 2010-08-25 18:05:23 +02:00
Stefan Bühler 6f454d0008 [plugin_core]: add "static_no_fail" action, which doesn't return 403/404 so other actions can handler the request 2010-08-24 21:48:56 +02:00
Stefan Bühler b876f8401d [core]: rework connection/vrequest structs; add liConInfo 2010-08-11 13:27:27 +02:00
Thomas Porzelt e2a551298e [core] Use liCond* helpers in li_pattern_parse/eval 2010-07-24 14:51:44 +02:00
Thomas Porzelt c8663ffda9 [core] Allow disabling of stat cache through stat_cache.ttl 0; 2010-07-18 13:53:07 +02:00
Thomas Porzelt 43def72d5b [core] Fix tiny leak in docroot action 2010-07-11 23:53:01 +02:00
Thomas Porzelt 39df9263fb [plugin_core] Add support for patterns to log.write action 2010-06-12 12:40:10 +02:00
Thomas Porzelt 7409b2ef63 [plugin_core] Enable 'docroot' action to use patterns and even traverse a list of these 2010-06-07 00:02:43 +02:00
Thomas Porzelt b5009f18df [core] Fix usage of sched_setaffinity() and disable it for now as it seems to impose a little performance hit 2010-05-16 18:35:54 +02:00
Thomas Porzelt 727a480a14 [core] Remove profile_mem action from core plugin, was moved to mod_debug 2010-05-13 12:11:24 +02:00
Stefan Bühler a8efcfcc0e modify plugin api to include worker context for action/option parsing; add per-worker callback for stop_worker
* create main_worker earlier
2010-05-07 20:54:50 +02:00
Stefan Bühler 46b9a28f87 Fix pathinfo; action to remove the pathinfo from the url too (for SCRIPT_NAME) 2010-05-01 11:54:25 +02:00
Thomas Porzelt 683e334599 [plugin_core] Return error 405 for methods other than GET or HEAD on static files 2010-04-04 17:07:24 +02:00
Stefan Bühler 2c4f6b29a1 Handle NULL values in plugin_core.c 2010-02-14 20:58:27 +01:00
Stefan Bühler d0f6484e7c Move sched_[gs]etaffinity to plugin_core 2010-02-13 15:54:48 +01:00
Thomas Porzelt d18045ccbf [core] Rework throttle code a bit, especially regarding pools 2010-02-13 14:30:32 +01:00
Stefan Bühler 2e131dc93f Put pathinfo debug messages into debug-request-handling 2010-02-08 17:00:44 +01:00
Thomas Porzelt 6a5411c2f1 [plugin_core] Set con->throttle.pool.queued to FALSE after unlinking from queue 2010-02-08 15:24:25 +01:00
Thomas Porzelt 1297a1fab7 [core] Fix crash in throttle pool handling 2010-02-07 22:49:54 +01:00