759 Commits (577ab12a13cbe66726e85d620ad7878ec6072db6)

Author SHA1 Message Date
Thomas Porzelt 21c391da66 ipv4 and ipv6 hashing functions 15 years ago
Thomas Porzelt f23b051c30 moved freeing of value after parsing in plugin_set_default_option(); made that function static 15 years ago
Thomas Porzelt 472e7a81a9 changed srv->option_def_values to GArray and intialization of default values; enabled overriding of default values in config parser 15 years ago
Thomas Porzelt 604042b24c fixed segfault in server_free() if workers are not allocated yet; removed virtualrequest.h include from base.h 15 years ago
Stefan Bühler 36b0ae3628 Move request parser data into connection struct 15 years ago
Stefan Bühler 7cd0b2aaf6 Revert: Add refcount to http headers 15 years ago
Stefan Bühler de6996268f Add refcount to http headers 15 years ago
Thomas Porzelt 5150637e13 implemented port feature for listen setup; small memleak und config parser fixes 15 years ago
Stefan Bühler e1504a252f free value always from the calling function 15 years ago
Stefan Bühler d6b28e47aa Fix segfault if config parser failed 15 years ago
Thomas Porzelt 480de71283 small memleak fix 15 years ago
Thomas Porzelt 5e1ebf3c05 fixed small leak (config_path parameter) 15 years ago
Thomas Porzelt 30bae997eb moved log cleanups to own function; fixed memleaks in config parser and plugin_core 15 years ago
Stefan Bühler 5d27591a49 Fix return TRUE in a void function 15 years ago
Stefan Bühler 34c513c645 Fix waf wscript for the renamed files 15 years ago
Stefan Bühler c54a085552 Implement clean default values for options 15 years ago
Stefan Bühler 5d0d12c0bd Updated cmake ragel rules to build config parser with -T0 instead of -T1 15 years ago
Stefan Bühler 091f122aad Renamed option -> value, some other minor/related renames; added option_value as
datatype for the value of options (union for ptr/gin64)
15 years ago
Stefan Bühler a88ca5238c Add the "collect" framework, which collects results from a function executed in each worker context 15 years ago
Stefan Bühler 3c00360259 log requests/sec stats per worker 15 years ago
Stefan Bühler a17aa92250 Move stats into worker 15 years ago
Thomas Porzelt 593b0d1427 fixed wrong comment in worker.h 15 years ago
Thomas Porzelt 5a1acd8be9 reworked parts of config_parser 15 years ago
Thomas Porzelt 9ba30eccbd moved string_destroy_notify() from base.c to utils.c, fixed parameter definition 15 years ago
Thomas Porzelt 1faaf71de4 added option_to_string() 15 years ago
Thomas Porzelt 292d013134 reworked logging functions; added 'log' and 'log.timestamp' options, removed 'log.level' and 'log.target' options 15 years ago
Thomas Porzelt 6fe8eb603d fixed missing \r\n after response headers 15 years ago
Stefan Bühler 721cb88985 Kill some memleaks 15 years ago
Stefan Bühler 00143835d4 Move the connection tables into the workers, so no locking needed for them. 15 years ago
Stefan Bühler 2b9147ba50 Fix missing ':' after case EWOULDBLOCK 15 years ago
Stefan Bühler bca094fe9f Add cmake support 15 years ago
Stefan Bühler bfd20c2662 Add missing includes for open/fcntl 15 years ago
Stefan Bühler e87e6a9a58 Fix indentation in wscript 15 years ago
Stefan Bühler ac1f66ee1d Fix pcre 15 years ago
Thomas Porzelt 623e10d7a0 added missing insert into hashtable for logs, removed lock from log_free_unlocked() 15 years ago
Stefan Bühler 14cb73e80b Set cpu affinity 15 years ago
Stefan Bühler 267b0bf6fc shutdown sockets immediatly if srv->exiting is true 15 years ago
Stefan Bühler 45849a4864 Add error reporting if ev_loop creation fails. 15 years ago
Stefan Bühler c62f8f7945 Add more atomic protection 15 years ago
Stefan Bühler 58351b5ff0 Clean libev loops 15 years ago
Stefan Bühler dbc9859ce8 Use atomic refcount operations 15 years ago
Stefan Bühler 47c0acf4c2 Changed header implementation from hash-table to double linked list 15 years ago
Stefan Bühler f5cf939d5a Added "workers(x)" setup function 15 years ago
Stefan Bühler 0a4230cced Added basic notify + locking for workers 15 years ago
Stefan Bühler ee59334e9d Only send regular files with static handler 15 years ago
Stefan Bühler 798085f860 Fix some segfaults and add cleanup for worker split 15 years ago
Stefan Bühler 0fe9176d6f Splitted worker from server; removed "server *srv" from most function which also have "connection *con" 15 years ago
Stefan Bühler dbd9218150 Silence strict-alias warning again with redefining some macros 15 years ago
Stefan Bühler ecd1082378 Remove "my_ev_init" as we now have -fno-strict-aliasing; workaround was stupid anyway. Move static ev_signal vars into server struct. 15 years ago
Stefan Bühler e15193447d Fix cleanup of target_else in conditional action, added support for else branch in "when" action. 15 years ago
Thomas Porzelt cf51355d1c fixed else/elseif in config parser 15 years ago
Thomas Porzelt 1371d4e49f added else/elseif to config parser; uses new target_else member of action->value.condition 15 years ago
Thomas Porzelt 8649ce6cfe changed option default value assignment to callbacks 15 years ago
Stefan Bühler 577928e8eb Fix double con_put in server_free 15 years ago
Stefan Bühler 475300d1aa Fix keep-alive again (missing cleanup) 15 years ago
Stefan Bühler 491b7880cb Fix keep-alive idle. 15 years ago
Stefan Bühler 486f64bd7d Added keep-alive and dead state for connection, added timeout for keep-alive.
With "server.max-keep-alive-idle" = 5 (default) you get O(1), other values need O(log n)
15 years ago
Stefan Bühler 7bdce8aeb4 Added action/condition to option_copy 15 years ago
Thomas Porzelt d3547c5318 added option_copy(); fixed variable statements in config parser where assignments without parser func lead to OPTION_NONE options 15 years ago
Thomas Porzelt ccaacfb285 added 'blank' function to plugin_core 15 years ago
Thomas Porzelt 6804b1df00 implemented default values for options 15 years ago
Thomas Porzelt c5fb96870c added event_handler setup; added srv->loop_flags; moved loop initialization to server_loop_init(); added ev_backend_string() to utils.c 15 years ago
Thomas Porzelt 3caab6a860 added server.tag option 15 years ago
Thomas Porzelt c1bc3b8e0a small cleanup in config parser; small fix in log.c 15 years ago
Stefan Bühler 179021ca18 Fix memleak in writev backend 15 years ago
Thomas Porzelt 1ab2d0d6b3 small change to config parser: comment now included in noise set 15 years ago
Thomas Porzelt 4d55315487 added first counters 15 years ago
Thomas Porzelt c2b8ccdec4 changed operators ^= to =^ and $= to =$; introduced clean and ./waf 15 years ago
Thomas Porzelt aeba5c0080 merged from sandbox 15 years ago
Thomas Porzelt f795f2463a added ^= (prefix match) and $= (suffix match) operators 15 years ago
Stefan Bühler 5a1970e5d1 Add write as fallback for sendfile 15 years ago
Thomas Porzelt bb44fceb64 fixed invalid free in server.c 15 years ago
Thomas Porzelt 34b9edaa02 fixed invalid free in server.c 15 years ago
Stefan Bühler 1bc8c85266 * replace strerror with g_strerror, kill errno from logging
* starting chunked encoding filter
* network write cleanup + sendfile backend (default for now)
15 years ago
Thomas Porzelt 89d3b204a7 added header conditional check for normal config parser 15 years ago
Thomas Porzelt d234e396f8 merged from lp 15 years ago
Thomas Porzelt 1901397a0e minor enhencements; added log.level and log.target options 15 years ago
Stefan Bühler 85c4f3852b Fix hostname parsing. 15 years ago
Thomas Porzelt df16145d05 added http_status_string() function; response.c now includes the right status string 15 years ago
Thomas Porzelt 1798e226ff fixed fd initialization warning with -O2 in log.c 15 years ago
Thomas Porzelt ef9b96e552 fixed chunkqueue segfault with NULL filename 15 years ago
Thomas Porzelt e93d1ef301 merged from lp 15 years ago
Thomas Porzelt b1000d2ca4 config parser intial working version; test action in core plugin with more outpot 15 years ago
Thomas Porzelt 6467329144 merged from lp 15 years ago
Stefan Bühler 9d7d19c456 Fix hostname checking 15 years ago
Stefan Bühler 0d4b5ee989 Fix mmap offset calculation in chunk.c 15 years ago
Thomas Porzelt b0615d2198 merged from lp 15 years ago
Stefan Bühler a863b6f7e9 Added url/authority parsing, enabled simple static() action. 15 years ago
Stefan Bühler 754ee742b2 Start splitting network backends, added writev and TCP_CORK 15 years ago
Thomas Porzelt 2d08b0b823 small changes 15 years ago
Stefan Bühler 066d0f5342 Added plugin callbacks for content and close handling 15 years ago
Stefan Bühler 6d6fc095ab Fix typo in connections.c 15 years ago
Stefan Bühler 124e21ee7d Add 100-Continue handling 15 years ago
Stefan Bühler 6dcfc736c2 Add missing plugin_core.h for core options 15 years ago
Stefan Bühler b8e3535546 Enabled options, moved some initializing 15 years ago
Stefan Bühler 5fc77ca27a Fix 64-bit signed/unsigned compare warning. 15 years ago
Stefan Bühler 8de2c27ec6 Fix some bugs/warnings. 15 years ago
Stefan Bühler 2546ce9259 Use ev_now for current timestamp, clean usage of shutdown (wait for eof before close) 15 years ago
Stefan Bühler 4a9ed5e8a3 Disable test binary 15 years ago
Stefan Bühler 03458817cc Updated TODO hints 15 years ago
Thomas Porzelt 3964ce82b7 merged from lp 15 years ago
Stefan Bühler 1ed36c93b9 Handle write errors (fixes ab keep-alive problems) 15 years ago
Stefan Bühler 76dcab54fc Capture SIGINT, SIGTERM and SIGPIPE. 15 years ago
Stefan Bühler 3b4e8f6f8d Add some request header checks. 15 years ago
Stefan Bühler 52c5b05713 Added some http header helpers 15 years ago
Stefan Bühler 3041e2429d Fix writing (unititialized var) 15 years ago
Stefan Bühler 9760d73a24 Fix chunks to not accept empty chunks (and to remove them in cq_skip) 15 years ago
Stefan Bühler e216fc5168 handle requests now :) - still many TODOs for error handling/keep alive/validating headers 15 years ago
Thomas Porzelt 7dc2d5f337 merged from lp 15 years ago
Stefan Bühler e6463f776b Enable static build. 15 years ago
Thomas Porzelt 09481f470f changed log_ref to use mutex instead of atomic operations because those could still lead to race conditions 15 years ago
Stefan Bühler 2fbc7b1408 Basic connection state machine 15 years ago
Thomas Porzelt 24d1f61c87 reverted changes from r70 in server.c; enhanced config parser 15 years ago
Thomas Porzelt 708b5fc223 small fixes; call_setup() now looks in the right hashtable 15 years ago
Thomas Porzelt c2e6044315 con_get() now increases array size in steps of 10 15 years ago
Thomas Porzelt 1844a53dd3 merged from lp 15 years ago
Thomas Porzelt a603d799f6 config parser changes; removed srv->mutex 15 years ago
Stefan Bühler 0a514f657e server/connection/request functions 15 years ago
Stefan Bühler 0ab75876dc Merge 15 years ago
Stefan Bühler d1c1a1b06f Continue request parser 15 years ago
Thomas Porzelt 4ae1c04b55 merged from lp 15 years ago
Thomas Porzelt c190daa908 merged from lp and enhanced config parser 15 years ago
Stefan Bühler d45b540603 Rename action_setting stuff 15 years ago
Thomas Porzelt 5e700e79e1 small config parser and log changes 15 years ago
Stefan Bühler f86bf3631d Remove action_list struct 15 years ago
Thomas Porzelt a9cbec1046 config parser rewritten 15 years ago
Thomas Porzelt b3767c0190 merged from lp 15 years ago
Thomas Porzelt 28f733a2c5 small config parser changes 15 years ago
Stefan Bühler ff9b6c4461 Implement ip matching for conditions. 15 years ago
Thomas Porzelt 550b4e4858 merge from lp 15 years ago
Thomas Porzelt 4425a0dcd1 merge from lp 15 years ago
Stefan Bühler fcf8e455ab Optional lua frontend. 15 years ago
Thomas Porzelt 8b84f0fa6c merge from lp 15 years ago
Stefan Bühler aff9544b95 Parsers for ipv4/ipv6 für conditions 15 years ago
Thomas Porzelt 1d624ff022 merge from lp 15 years ago
Thomas Porzelt 1e9694e4f8 merge from lp 15 years ago
Stefan Bühler c342be6424 New condition structure, some code for lua condition support 15 years ago
Stefan Bühler 0ec2404647 Fix typo in index. 15 years ago
Thomas Porzelt 5d2f95cce3 merged from lp 15 years ago
Stefan Bühler 2f7359b14c changed some apis, implemented some todos, added support for lua actions/conditions. 15 years ago
Stefan Bühler 2537bb9d82 Add call_setup function 15 years ago
Thomas Porzelt 191343333e merge from lp 15 years ago
Stefan Bühler 6bbfe1e43e Added actions and setups to plugin_core.c 15 years ago
Thomas Porzelt aca2f46bf6 config parser changes 15 years ago
Stefan Bühler 6ee405f3cb Added a "proof of concept" core plugin. 15 years ago
Stefan Bühler 57701f997d Added "actions" and "setups" to the plugin api 15 years ago
Stefan Bühler 54ac4151cf Remove include "ev.h" (gets included in settings.h) 15 years ago
Stefan Bühler e44aea16ba Implement plugin registration 15 years ago
Thomas Porzelt d10756d047 added ifdefs to connection.h and server.h; documented mutexes 15 years ago
Thomas Porzelt 9858f4ee66 exit on log with level LOG_LEVEL_ERROR 15 years ago
Thomas Porzelt 5045a5ee04 made log refcounting, srv->exiting and srv->rotate_logs atomic operations; moved server and connection structs from base.h into server.h and connection.h respectively 15 years ago
Thomas Porzelt e80f384fac splitted log_thread_start() out of log_init() do enable delay of actual writing 15 years ago
Thomas Porzelt a37ec08db5 logging changes 15 years ago
Thomas Porzelt f5fdc41644 changed logging to use references 15 years ago
Thomas Porzelt 9ed64ee1fc merged from rev 48 15 years ago
Thomas Porzelt 6c7d8a1165 log fixes 15 years ago
Stefan Bühler 50bb61a041 Require srv for log macros, undo gint64 change for options (as it needs to fit into a pointer, and many other warnings) 15 years ago
Stefan Bühler b871c6cafa Fix previous commit 15 years ago
Stefan Bühler 8c8b77bac2 redo action_new_setting 15 years ago
Thomas Porzelt 49dfcddc2a added convenience makros for logging 15 years ago
Thomas Porzelt a662b01aca removed now unneeded mutex in log_t 15 years ago
Thomas Porzelt 4880a44903 introduced log levels 15 years ago
Thomas Porzelt 88f6a30274 introduced a logging thread 15 years ago
Thomas Porzelt b2697e7cb8 log_write_() improved 15 years ago
Thomas Porzelt acf42d82b4 added mutexes for server und connection structs; log_write_() proposal added 15 years ago
Thomas Porzelt 6b8bbdabde no more globals in lighttpd.c 15 years ago
Thomas Porzelt ded5777ea2 no more global var in config parser 15 years ago
Thomas Porzelt aa297fe7b2 added build date info to wscript and -v option 15 years ago
Thomas Porzelt 607e1897ef added command line argument parser 15 years ago
Thomas Porzelt 5cee4c1fa4 added lighttpd.c, modified action und option stuff 15 years ago
Thomas Porzelt 5cc704884a comp_operator_t for config parser too 15 years ago
Thomas Porzelt 8468ced4dd merged from lp 15 years ago
Thomas Porzelt 781dfd07cf config_cond_t renamed to comp_operator_t 15 years ago
Stefan Bühler b33450ff28 Separate module from plugin, add version to server struct. 15 years ago
Stefan Bühler 906cca0551 Include libev in settings.h 15 years ago
Stefan Bühler a6c4a50319 Add libev and fix wscripts 15 years ago
Stefan Bühler 33dd2691c1 Upgrade to new waf, run ragel in './waf dist' and make ragel optional if the needed files are already generated. 15 years ago
Stefan Bühler 6a477c5f7f Fix macro redefine 15 years ago
Stefan Bühler 468b5afc15 Fix cyclic header dependency problem 15 years ago
Thomas Porzelt 5c472203d7 removed some option functions 15 years ago
Thomas Porzelt 4488ebaca6 options stuff 15 years ago
Thomas Porzelt 16f2068fad options stuff 15 years ago
Stefan Bühler 569b139bd7 only one setting per action 15 years ago
Stefan Bühler fccd44f2ad option/action/plugin 15 years ago
Thomas Porzelt b74a2ba5d3 missing brace... 15 years ago
Thomas Porzelt 04dea42892 free functions for list and hash in option_free() 15 years ago
Thomas Porzelt 0250cbc1df path and header fix for tests.c 15 years ago
Thomas Porzelt 41a14f5b44 path and header fix for tests.c 15 years ago
Thomas Porzelt 7e0d56de9c action_list_new() small fix 15 years ago
Thomas Porzelt cfcdc075d7 config parser merge 15 years ago
Thomas Porzelt a449c4e842 action_list_new() added 15 years ago
Thomas Porzelt 8eb6670388 config parser 15 years ago
Stefan Bühler cbf88bb3ee Fix request and parser, added simple request test. 15 years ago
Stefan Bühler a1414bce60 Fix chunkiter_read (do not require open file for mem chunk) 15 years ago
Stefan Bühler 18413d698a Renamed chunk sources, added request parser, header management, test file. 15 years ago
Stefan Bühler 503e8d7859 Basic ragel suport 15 years ago
Thomas Porzelt 3c05dca97a unindent switches 15 years ago
Thomas Porzelt e8fd628b00 switch defaults removed 15 years ago
Thomas Porzelt b9c8c08e98 condition changes 15 years ago
Stefan Bühler c612995cfe Request/condition 15 years ago
Stefan Bühler 777232ab5d Condition 15 years ago
Thomas Porzelt 75c751ce6e actions stuff 15 years ago
Thomas Porzelt b080f7a2b4 actions stuff 15 years ago
Thomas Porzelt 6822fc7d24 actions.h fix 15 years ago
Thomas Porzelt 586ac096f4 addition to actions.h 15 years ago
Thomas Porzelt 5c8def1f2c actions.h added 15 years ago
Thomas Porzelt 67ee0333ab test commit 15 years ago
Stefan Bühler 031b7bf7df 2nd commit ;-) 15 years ago
Stefan Bühler 9372e41393 Initial commit 15 years ago