2
0
Fork 0
Commit Graph

1383 Commits

Author SHA1 Message Date
Stefan Bühler c61f4929cb more asserts and checks in stream_simple_socket 2013-05-24 17:19:44 +02:00
Stefan Bühler b6325775dc [backends] fix connection insertion 2013-05-24 15:17:02 +02:00
Stefan Bühler ba46b595ae [mod_fastcgi] fix broken asserts 2013-05-24 15:16:30 +02:00
Stefan Bühler d59cbf3f4e [mod_fastcgi] add some asserts 2013-05-24 14:06:00 +02:00
Stefan Bühler 5c2cc7143d fix filters (deflate, memcached, cache_disk_etag) 2013-05-24 13:50:50 +02:00
Stefan Bühler f33a7fd3fa [lua] check values for NULL before pushing to stack 2013-05-24 11:21:13 +02:00
Stefan Bühler 3aa78c1002 wait for request body in dynamic backends, cache them on disk 2013-05-23 17:56:24 +02:00
Stefan Bühler c40b1da839 [subrequests lua] fix compile warnings. still not working, needs to be ported to stream api. 2013-05-23 17:56:24 +02:00
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 b028ad841f [mod_gnutls] stream 2013-05-23 17:56:24 +02:00
Stefan Bühler d0d3c851a5 [openssl] use BIO wrappers for streams 2013-05-23 17:56:24 +02:00
Stefan Bühler d9952f8e14 [mod_proxy] use backends 2013-05-23 17:56:23 +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 079c365f39 [mod_scgi] use backends 2013-05-23 17:56:23 +02:00
Stefan Bühler b74ec36c1e [mod_fastcgi]: use backends 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 4793e43461 [mod_gnutls] fix ca-file handling 2013-05-07 13:58:35 +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 0dd67d972a [mod_lua] fix order of setting ts_loaded and checking it 2013-04-09 16:44:50 +02:00
Stefan Bühler e2d7bb30ec [mod_lua] fix docs 2013-01-25 10:02:08 +01:00
Stefan Bühler ff527c560c [mod_lua] fix ttl handling for lua.handler 2013-01-25 10:02:08 +01: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 178e7c898f [profiler] use g_static_mutex to trigger mutext memory allocation before registering profiler alloc handlers 2012-12-06 15:34:51 +01:00
Stefan Bühler af3e0728fa [mod_deflate] Parse x-gzip/x-bzip2 explicitly and send it back as it was requested (instead of gzip/bzip2) 2012-10-14 17:33:02 +02: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 1951de6e40 [mod_acceslog] fix escaping of " 2012-06-16 12:57:27 +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 8d709f8574 [ipv6 parser] Fix type-punned memory access 2012-03-13 00:19:56 +01:00
Stefan Bühler c270124514 [mod_gnutls] remove \n from log messages 2012-01-22 13:26:29 +01:00
Stefan Bühler 3972451633 [ip-parser] fix ipv4 netmask for /0, added some unit tests 2012-01-18 10:35:35 +01:00
Stefan Bühler 34ad0a52e4 [gnutls] fix automake 2012-01-17 22:47:53 +01:00
Stefan Bühler bef05e0b2e new module: mod_gnutls 2012-01-17 21:30:13 +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 9bf335c121 [jobqueue] add li_job_stop 2011-12-19 16:42:18 +01:00
Stefan Bühler f7730910ad [utils] handle NULL loop in li_ev_io_* event changing 2011-12-19 16:41:31 +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
Thomas Porzelt 8a4565a63a [mod_flv] don't retry close(fd) on EINTR
Sources:
- http://www.daemonology.net/blog/2011-12-17-POSIX-close-is-broken.html
- http://linux.derkeiler.com/Mailing-Lists/Kernel/2005-09/3000.html
- http://linux.derkeiler.com/Mailing-Lists/Kernel/2005-09/3202.html

However this might not be true for all systems, more investigation needed.
2011-12-17 10:57:56 +01:00
Stefan Bühler b15ec2ecf4 [cmake] fix linker errors with --as-needed (fixes #2360) 2011-12-16 21:01:55 +01:00
Stefan Bühler f98f9bb7b3 [openssl] fix error message for wrong listen option 2011-12-16 20:57:26 +01:00
Stefan Bühler dd4ed2c560 [mod_openssl] fix build error if SSL_OP_NO_COMPRESSION isn't defined 2011-12-02 13:43:54 +01:00
Stefan Bühler 7a9ae91566 [mod_openssl] close connection on client initiated renegotiation 2011-12-02 13:38:22 +01:00
Joe Presbrey 85b620eb3c [mod_openssl] add options and defaults
Co-authored-by: Stefan Bühler <stbuehler@web.de>
2011-12-02 12:15:28 +01:00
Joe Presbrey 92bfc4c676 [mod_openssl] add openssl.setenv action (client, client-cert, server, server-cert) 2011-11-30 12:53:06 -05:00
Joe Presbrey 3f9ba6ebdc [mod_openssl] add verify{,-any,-depth,-require}, client-ca-file 2011-11-30 01:26:04 +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 3af94cf12d [mod_progress] free data on module unload properly 2011-11-26 16:17:31 +01:00
Thomas Porzelt 2d52ff9170 [mempool] support profiler for mmap allocations. use g_malloc/free instead malloc/free 2011-11-26 16:07:38 +01:00
Thomas Porzelt aeb88422a0 [profiler] export li_profiler_enabled and li_profiler_hashtable_insert/remove. add heap base/break/size to dump output 2011-11-26 15:56:45 +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 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
Stefan Bühler 3482c04c26 [mod_auth]: fix segfault from last commit 2010-09-12 13:55:37 +02:00
Stefan Bühler 126feee4fd [mod_auth]: Reload password file after changes, added ttl parameter 2010-09-12 13:46:43 +02:00
Thomas Porzelt c7a39e4da1 [core] Fix compilation on non-linux systems 2010-09-11 11:34:06 +02:00
Thomas Porzelt 0eaed50c1c [core] Use uintptr_t instead of guintptr as it requires an otherwise unneeded recent glib version 2010-09-11 11:28:21 +02:00
Stefan Bühler 2d57e56bdc Add lua default path for distributed core lua scripts 2010-09-07 20:24:26 +02:00
Stefan Bühler 9ba3395241 Fix C++ style comments 2010-09-05 14:19:44 +02:00
Stefan Bühler 91fda70bca [plugin_core] Fix mixed declarations and code 2010-09-05 14:19:43 +02:00
Stefan Bühler 7d938e48e3 [log] Fix prepare handler 2010-09-05 14:19:27 +02:00
Stefan Bühler 79d98f5991 [core] Use liJobQueue for vrequest job queue 2010-09-05 13:39:30 +02:00
Stefan Bühler c3dc0d8d7e [common]: Add generic jobqueue 2010-09-05 13:39:22 +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 004e70479e [angel]: fix default allow-listen port detection 2010-08-26 18:18:59 +02:00
Stefan Bühler 2ad699f56e [angel] fix segfault if no user was specified 2010-08-26 15:02:11 +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 b5eb16006c [angel]: fix default worker path 2010-08-26 12:10:16 +02:00
Stefan Bühler d133b8ad8c [lua]: add subrequst_lua.c 2010-08-26 09:00:50 +02:00
Stefan Bühler 77ad119f66 [lua]: add subrequests 2010-08-26 00:34:28 +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 8587598a66 [core] add tasklets: jobs which use blocking code 2010-08-25 15:56:11 +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 1fb0e6db2c Rename angel config "listen" to "allow-listen" 2010-08-24 21:15:48 +02:00
Stefan Bühler c3164aba8b Move binary names: angel becomes lighttpd2, worker lighttpd2-worker 2010-08-24 21:05:17 +02:00
Stefan Bühler 0047fe22fa radix: fix li_radixtree_new prototype 2010-08-23 16:53:03 +02:00
Stefan Bühler b8a0921265 Add some missing LI_/li prefixes for types and enum values 2010-08-19 17:24:07 +02:00
Stefan Bühler 7976cf53cf [mod_proxy] Add X-Forwarded-{For,Proto} headers, handle 1xx responses 2010-08-19 17:17:29 +02:00
Stefan Bühler b87e74d151 Optimize IO handling to safe syscalls; run vrequest state machines twice before looking for new io events 2010-08-11 13:27:27 +02:00
Stefan Bühler b876f8401d [core]: rework connection/vrequest structs; add liConInfo 2010-08-11 13:27:27 +02:00
Stefan Bühler cae0c15710 Optimize some string handling in chunk parser 2010-08-11 13:07:33 +02:00
Stefan Bühler 254ba2a1f6 Optimize header insertion 2010-08-11 13:07:29 +02:00
Stefan Bühler cc0044c4ee Fix http method parser, add inlined g_string_append_len 2010-08-11 12:56:08 +02:00
Stefan Bühler a2ed50dedd Optimize some socket initialization handling 2010-08-11 12:56:01 +02:00
Stefan Bühler 0325d10f4a [mod_balancer] fix comments 2010-08-11 12:55:55 +02:00
Stefan Bühler ec3fa8251f [mod_fastcgi] stop spamming logfile with repeated error 2010-08-10 15:37:07 +02:00
Stefan Bühler 3b202faf01 Implement backlog for balancer 2010-08-10 15:31:23 +02:00
Stefan Bühler 7bb671de4c [config parser] fix operators 2010-08-09 00:16:13 +02:00
Stefan Bühler b7e6ba4eb5 condition.c: set match_type in all cases 2010-08-08 23:54:08 +02:00
Stefan Bühler 8b17198eb6 Try to fix some bugs in the config parser 2010-08-08 23:36:20 +02:00
Thomas Porzelt 2885c88ae7 [core] Config parser: one more fix for condition parsing 2010-08-08 21:53:21 +02:00
Thomas Porzelt 5b9cc67ad5 [core] Config parser: fix a whitespace handling bug 2010-08-08 14:21:36 +02:00
Thomas Porzelt 7648ef0f40 [core] Config parser: Fix parsing rules for multiple else-if conditions 2010-08-08 01:05:46 +02:00
Thomas Porzelt 45d9fda41e [core] Config parser: fix condition with key handling 2010-08-08 00:27:01 +02:00
Stefan Bühler 18fd43840c [mod_balancer] fix typo, and fix balancer handling in action-stack 2010-08-07 19:32:11 +02:00
Stefan Bühler 20fc288481 [mod_balancer] Implement RoundRobin and SQF 2010-08-07 19:16:39 +02:00
Stefan Bühler dd0bee3fd6 action_stack: fix balanacer management 2010-08-07 18:45:21 +02:00
Thomas Porzelt ab94d8390d [core] Change *bit integer suffixes in config parser 2010-08-04 22:04:00 +02:00
Thomas Porzelt 5f655d3b6e [core] Fix 'else if' handling in config parser 2010-08-04 21:19:32 +02:00
Thomas Porzelt 65a3d5dfa9 [core] Add support for 'and' and 'or' in conditions to the config parser 2010-08-03 22:03:14 +02:00
Thomas Porzelt b11c98d4cf [mod_status] Fix memory usage display on runtime info page 2010-07-31 21:24:31 +02:00
Thomas Porzelt de02a475c3 [mod_status] Show memory usage instead of hostname 2010-07-31 17:48:10 +02:00
Stefan Bühler 06b40f5ff4 Fix compile on FreeBSD 2010-07-31 15:57:34 +02:00
Thomas Porzelt 15c89fc606 [core] Fix compilation on osx and freebsd+waf 2010-07-31 15:51:10 +02:00
Thomas Porzelt 20c3e7d6ad [core] Add li_memory_usage(), clean up some old sys-* files 2010-07-31 15:16:29 +02:00
Stefan Bühler 2045be0729 mod_auth: fixing previous commit 2010-07-29 13:32:34 +02:00
Stefan Bühler 72addaeec3 mod_auth: ignore already handled requests 2010-07-29 13:30:18 +02:00
Stefan Bühler 37666894ed [cmake]: check glib version for >= 2.16 2010-07-26 15:18:56 +02:00
Stefan Bühler 06c7dfd3b9 mod_limit: Include radix.h 2010-07-26 15:15:32 +02:00
Stefan Bühler 2439159689 [cmake]: Fix mod_limit 2010-07-26 15:10:58 +02:00
Thomas Porzelt 2d2bb12e3d [modules] Add mod_limit 2010-07-25 12:37:37 +02:00
Thomas Porzelt e2a551298e [core] Use liCond* helpers in li_pattern_parse/eval 2010-07-24 14:51:44 +02:00
Stefan Bühler fa3c81bd11 [mod_memcached]: less log spam, fix another endless loop 2010-07-18 21:45:19 +02:00
Stefan Bühler 831cca1c59 [mod_memcached]: try to fail quietly after connection resets until the next connect 2010-07-18 21:35:55 +02:00
Stefan Bühler d498a9fee9 memcached.c: fix endless loops 2010-07-18 21:22:45 +02:00
Stefan Bühler 0b5a67b2a6 memcached.c: fix GET response parsing 2010-07-18 20:43:04 +02:00
Stefan Bühler e10df4ed77 memcached.c: fix wrong parameter (use real enum value) 2010-07-18 20:30:06 +02:00
Stefan Bühler 0e4291d5dd [mod_memcached]: fix some debug messages 2010-07-18 18:22:33 +02:00
Stefan Bühler acf6263448 memcached.c: clear error (fixing another memleak) on free 2010-07-18 18:08:01 +02:00
Stefan Bühler 2d44ae1ea9 memcached.c: Fix mem leaks and ev_io stop/start 2010-07-18 17:19:43 +02:00
Thomas Porzelt c8663ffda9 [core] Allow disabling of stat cache through stat_cache.ttl 0; 2010-07-18 13:53:07 +02:00
Stefan Bühler cbb9165eb0 [mod_memcached]: set default ttl to 30 seconds 2010-07-18 11:15:19 +02:00
Stefan Bühler d5bc446ebe [mod_memcached]: implement refcount handling for memcache_ctx 2010-07-18 11:15:19 +02:00