287 Commits (2bcb880dc84fb03218894709eed0b8816602b557)

Author SHA1 Message Date
Stefan Bühler 471a521f48 Improve filter handling (handle reverse out stream closing) 14 years ago
Stefan Bühler d2ba4ca0dd Fix LI_COND_LVALUE_END value 14 years ago
Stefan Bühler 4b94e01ecc Add response.header/status conditionals 14 years ago
Stefan Bühler 241d0e48de mod_deflate: Add Vary header, reset content-length header 14 years ago
Stefan Bühler 1acacd5737 Prefix inline api functions with li_ 14 years ago
Stefan Bühler b9f92f704e Fix server.tag and version output, part 2 14 years ago
Stefan Bühler bf9e34bab7 Remove li_vrequest_stat and fix condition.c 14 years ago
Stefan Bühler f31572bef1 Append slash to doc-root for physical path if it is missing 14 years ago
Stefan Bühler 39a879f89a Add "include_lua" to config special commands if compiled with lua 14 years ago
Stefan Bühler 659ebfdd16 Add core lua support to handle requests 14 years ago
Stefan Bühler 897b27c692 Some core docs fixed 14 years ago
Stefan Bühler 77f2a832e7 Fix liRequestUri struct 14 years ago
Stefan Bühler f030824550 Fix server address (do not use the listen address) 14 years ago
Stefan Bühler a663088a77 Add custom server socket callbacks (for ssl modules) 14 years ago
Stefan Bühler c77ba3eb20 Cleanup connection code 14 years ago
Stefan Bühler 007e5e040c Add listen mask checks to angel 14 years ago
Stefan Bühler 56ff7ca32a angel/lighty now synchronize the server state 14 years ago
Stefan Bühler eeddb37e4a Add plugin angel callbacks 14 years ago
Thomas Porzelt 86ebb4c7f0 [core] Add li_querystring_find() function to utils 14 years ago
Thomas Porzelt 6cb5af487f [core] Add li-prefix to structs, enums and function names for encoding helpers 14 years ago
Stefan Bühler df96167362 Add automake 14 years ago
Stefan Bühler b364b09790 Fix some error reporting in angel 14 years ago
Stefan Bühler 534a0f2d3a New instance state machine 14 years ago
Stefan Bühler 594987c29e Add li_ev_safe_ref_and_stop macro and use it 14 years ago
Stefan Bühler 30f804170c Fix angel_log.h macros 14 years ago
Stefan Bühler baa78b1ebb Handle multi-lines for error-pipe logging 14 years ago
Stefan Bühler e02d2efea1 Remove path in angel_proc logging 14 years ago
Stefan Bühler 766fcd4bfc Add liProc and liErrorPipe for angel 14 years ago
Thomas Porzelt e838c9b3cf [core] Add liTimeFunc (gmtime_r, localtime_r) parameter to li_worker_current_timestamp() 14 years ago
Stefan Bühler 75237dda62 Add GError log writing 14 years ago
Stefan Bühler ab1387d4ba Move and add some common log helpers to utils 14 years ago
Stefan Bühler b187c4f3c5 Fix missing newlines at end of files 14 years ago
Stefan Bühler a061745193 Fix bugs found with the static clang analyzer (http://clang-analyzer.llvm.org/) 14 years ago
Stefan Bühler f4f2bd1f38 Poison non-thread-safe functions and fix errors 14 years ago
Stefan Bühler 1ce3b7fa24 Remove pcre dependencies (we use the glib wrappers) 14 years ago
Stefan Bühler 282a2d1b4a Prefix LI_API functions with "li_" 14 years ago
Stefan Bühler 99b203e3d8 Prefix typenames, enums and some macros with "li" and "LI_"; CamelCase TypeNames 14 years ago
Stefan Bühler f8be820c36 Big lighttpd-angel update; still not complete, but supports fork+exec+setuid/gid+listen (no checks in listen yet) 14 years ago
Stefan Bühler d30108b967 Make radix implementation independent of lighty 14 years ago
Stefan Bühler 75505f73e1 Add more angel connection handling code (and helper functions) 14 years ago
Stefan Bühler 40fbc9c8b7 Fixed the splitting from previous commit and splitted the ip parsers from condition handling 14 years ago
Stefan Bühler d64f5d4788 Split lighttpd specific functions from utils into lighttpd-glue. 14 years ago
Stefan Bühler c2ce9c4f53 Fix encoding functions (use _append for the append version); do not encode characters >= 0x80 for html. 14 years ago
Thomas Porzelt ff39991ed0 [core] Add support for regex conditionals 14 years ago
Thomas Porzelt fd8f6ed60f [core] Change cond_lvalue_form_string() and move it from utils.c to condition.c 14 years ago
Thomas Porzelt 3efaf40853 [core] Add cond_lvalue_from_str() to utils 14 years ago
Thomas Porzelt 16097f84ea [core] Fix erronous invisible char in settings.h 14 years ago
Thomas Porzelt 451cdd1579 [core] Add implementation of 32bit radix trees (radix.{h.c}) 14 years ago
Thomas Porzelt 0e001f21e5 Fix two small typos in idlist.h comments 14 years ago
Stefan Bühler 7c27d1b342 Added "idlist": maange a list of used ids 14 years ago
Stefan Bühler 48bf0071e4 [angel] Add basic module/plugin support
* renamed some module functions
14 years ago
Thomas Porzelt 087f06a07d Fix singness warnings 14 years ago
Stefan Bühler c8d26383c3 Fix shadow warnings 14 years ago
Stefan Bühler 3a1af99500 Include <stdio.h> and <stdlib.h> in settings.h for everyone. 14 years ago
Stefan Bühler dfb1db14d7 Use pointer-sign warning in cmake und fix many of them. 14 years ago
Stefan Bühler 0ec334c887 Killed sys-strings.h (replaced with glib functions) 14 years ago
Stefan Bühler 72136b4d03 angel: some basic structs, code not ready yet (config parser "works") 14 years ago
Thomas Porzelt 383fa6a4f5 - introduce throttling via pools, rework throttling by connection
- new actions: 'throttle_pool', 'throttle_connection' and 'status'
- don't start waitqueue timer in waitqueue_init(); start/stop timer on demand
- new parameter for network_write(): write_max
- move stats and timeout handling from network_write/read() to connection_cb()
14 years ago
Stefan Bühler 595ce1fe13 Add wrk in vrequest, s/vr->con->wrk/vr->wrk/, removed some other (broken) usages of vr->con 14 years ago
Stefan Bühler 4e04ac6b8b cmake: use builtin macros for build date 14 years ago
Stefan Bühler 7aaa764f49 Added vrequest_joblist_append_async (with a vrequest-reference handling) 14 years ago
Stefan Bühler 194db07279 Use GByteArray in mod_fastcgi 14 years ago
Stefan Bühler 611d7dcac3 Recode the sockaddr handling, fixing some bugs 14 years ago
Stefan Bühler 691939dbdc Rename MEM_CHUNK to STRING_CHUNK and add new MEM_CHUNK with GByteArray as content
- GByteArray doesn't have a terminating zero, so we save memory; especially
   if the real size is 2^n, GString would allocate 2^(n+1) bytes.
14 years ago
Thomas Porzelt ab9a616f5d optimize ram usage by freeing unused connections 14 years ago
Thomas Porzelt ddb0448a96 rework stat_cache 14 years ago
Stefan Bühler a0d963ef11 Fix printf checks with glib macro 14 years ago
Stefan Bühler 384bab3719 Forgot source/header for etag.{c,h} 14 years ago
Stefan Bühler a62cdebb91 Fix static file/dirlist handling and add etag support 14 years ago
Stefan Bühler b423170266 Rewrite l_g_string_from_int to l_g_string_append_int 14 years ago
Stefan Bühler e020850dc8 Add vrequest_is_handled function 14 years ago
Stefan Bühler 9df3918e9b Add l_g_string_from_int to utils - prints a gint64 to a GString 14 years ago
Stefan Bühler d7e53a44de Changed collect api: removed fdata_free (wasn't used) and return NULL from collect_start if collect finished before returning. 14 years ago
Thomas Porzelt a9c75934a8 change counter format output 14 years ago
Thomas Porzelt f9ca699307 add waitqueue_length() 14 years ago
Stefan Bühler bedcc3d46a Added mod_cache_disk_etag: caches produced content on disk and checks for it via etag. 14 years ago
Stefan Bühler 87cd65e98f Don't check for NULL strings in CONST_STR_LEN 14 years ago
Stefan Bühler 12b421b9a9 Don't block fastcgi if limit on input queue is hit 14 years ago
Stefan Bühler 158f42aa0f Add support for filters 14 years ago
Thomas Porzelt 7d88ae2e73 [utils] add l_g_string_prefix() and l_g_string_suffix() 14 years ago
Thomas Porzelt 0719779fd2 add ENCODING_URI to encoding functions 14 years ago
Thomas Porzelt a888c34dbb add encoding functions 14 years ago
Thomas Porzelt 4d2cf580df add stat_cach_get_dir() to get directory listing; add stat_cache.ttl setup 14 years ago
Thomas Porzelt 004dfc1bf6 add spaces in waitqueue.h for readability 14 years ago
Thomas Porzelt 9a23f4465d add dirent_buf_size() to utils 14 years ago
Stefan Bühler 2f9e612c99 Use chunkqueue-limit (setup in plugin_core) 14 years ago
Stefan Bühler 6ebc331215 Implement l_g_string_assign_len() 14 years ago
Stefan Bühler 39ecfa89e5 Add chunkqueue-limit framework 14 years ago
Thomas Porzelt efab0ca75d implement stat cache 14 years ago
Stefan Bühler b033f0c194 Extended sockaddr_to_string for use in connect-failed error message in mod_fastcgi 14 years ago
Stefan Bühler 95fee3059b Add handling for environment vars in backends 14 years ago
Stefan Bühler 5c797977c6 Add stderr log support in mod_fastcgi (split lines from backend in log.c) 15 years ago
Stefan Bühler d29565a211 Split chunkiter_read into simple read() and mmap() with fallback read(); _mmap() may result in SIGBUS (e.g. truncated file) later. 15 years ago
Stefan Bühler 4a8ce0a63f Redo boolean conditionals (physical.*) as real actions. 15 years ago
Stefan Bühler 587ee27cd0 Added response parser and used it in mod_fastcgi 15 years ago
Stefan Bühler 4a5aa5361e Added/fixed chunked encoded transfer 15 years ago
Thomas Porzelt 70a495de6f fix ev_tstamp vs. time_t problems in worker_current_timestamp() 15 years ago
Thomas Porzelt 7766bd8c34 save errno of stat() in request.physical struct to prevent repeated stat()s if failed 15 years ago
Thomas Porzelt 93bd5e2a6a add additional paramter format_ndx to worker_current_timestamp() 15 years ago
Thomas Porzelt 2fb007bd3d add http_version_string() to utils 15 years ago
Thomas Porzelt d2cadb3b1e add option server.name 15 years ago
Thomas Porzelt 85a3a4d091 added "if" to condition syntax (if req.path == "/foo" {})
added boolean conditions without operator or rvalue (if phys.is_dir {}, rvalue is always true)
added negated boolean conditions (if !phys.is_dir {}, rvalue is always false)
added physical.is_dir and .is_file conditionals
15 years ago
Thomas Porzelt 01068d7f1d make docroot a function action instead of setting, add stat member to vr.physical and enable physical.size conditional 15 years ago
Stefan Bühler d9ddd4fd3d Remove out-of-fd-handling. 15 years ago
Stefan Bühler 54fd1b08e4 Cleanup some state machine handling 15 years ago
Thomas Porzelt bf549bbe0d add check for sizeof(off_t) to MODULE_VERSION_CHECK() 15 years ago
Stefan Bühler c458377d4a Added mod_fastcgi, some api functions for it, and some new optional compiler warnings (which led to many small changes) 15 years ago
Stefan Bühler c56ade056f Add vrequest "environment" (a GString -> GString hashtable) 15 years ago
Stefan Bühler d30e1b018a Added some backend/balancer helper, fixed backend-error handling. 15 years ago
Stefan Bühler 6636919623 Completed core balancer support, added a simple test balancer. 15 years ago
Thomas Porzelt 66f7e669dd add log level "backend" 15 years ago
Stefan Bühler 025f0b5f84 Removed HANDLER_FINISHED, implemented real job queue and added some basic balancer structs 15 years ago
Stefan Bühler 20c3d8c109 Remove unused struct members 15 years ago
Stefan Bühler 20dfff0663 Cleanup log macros (moved from con to vrequest) 15 years ago
Stefan Bühler c24704dad5 Move options from connection to vrequest 15 years ago
Thomas Porzelt e344591265 unify level info placement in log makros 15 years ago
Thomas Porzelt 52d5978d64 export module_lookup() 15 years ago
Stefan Bühler e8e60b3a04 Add clean ipv6+port parsing for listen() 15 years ago
Stefan Bühler bb59776ea3 Handle errno in angel_fake_log 15 years ago
Stefan Bühler 324224fe2e Implemented two angel "fake" functions 15 years ago
Thomas Porzelt 20e0a9e4e8 add http_method_string() to utils 15 years ago
Stefan Bühler 4a02223f7c Added per-action context 15 years ago
Thomas Porzelt 736d8c6192 add server.max_keep_alive_requests option 15 years ago
Thomas Porzelt 58cf85f5d1 remove old log stuff 15 years ago
Thomas Porzelt b0def14e1f remove wrong ! from sendfile macro for linux 15 years ago
Thomas Porzelt d2381954bf removed old AIO defines from settings.h 15 years ago
Stefan Bühler 2040c059d1 Fix connection/network_write state machine 15 years ago
Stefan Bühler 7a496b610b Fix comment style // -> /* */ 15 years ago
Thomas Porzelt 6dbaaf5430 fix warnings about shadowed declarations of 'free' and 'value' in headers 15 years ago
Thomas Porzelt 4080ddcd16 cosmetic changes of 'defined x to defined(x)' in settings.h to unify usage 15 years ago
Thomas Porzelt 75ce595e5b add LIGHT_OS_XYZ macros 15 years ago
Stefan Bühler 99733ef5a7 Add OS X sendfile implementation (and fix the freebsd one) 15 years ago
Thomas Porzelt 84b7487cc4 add USE_OSX_SENDFILE macro 15 years ago
Stefan Bühler 94b4dcc764 Generic sendfile implementation (supports linux,solaris and freebsd now) 15 years ago
Stefan Bühler 91d4868ef4 Move stats and throttle to network.c 15 years ago
Stefan Bühler fae25515fa Split waitqueue from utils 15 years ago
Stefan Bühler 3dceeb5916 Move include files into a separate directory and cleanup include order 15 years ago