2
0

Commit Graph

  • 0fe9176d6f Splitted worker from server; removed "server *srv" from most function which also have "connection *con" Stefan Bühler 2008-09-08 02:20:55 +02:00
  • 371c9749d7 Try to make ragel call ragel5 compatible Stefan Bühler 2008-09-08 02:20:25 +02:00
  • dbd9218150 Silence strict-alias warning again with redefining some macros Stefan Bühler 2008-09-07 15:33:11 +02:00
  • ecd1082378 Remove "my_ev_init" as we now have -fno-strict-aliasing; workaround was stupid anyway. Move static ev_signal vars into server struct. Stefan Bühler 2008-09-02 20:30:39 +02:00
  • 90e566be80 Add --debug configure option to waf; if not given use -O2. Use -fno-strict-aliasing. Stefan Bühler 2008-09-02 20:29:21 +02:00
  • e15193447d Fix cleanup of target_else in conditional action, added support for else branch in "when" action. Stefan Bühler 2008-08-27 16:39:30 +02:00
  • ead4172d75 fixed else/elseif in config parser Thomas Porzelt 2008-08-27 00:58:00 +02:00
  • cf51355d1c fixed else/elseif in config parser Thomas Porzelt 2008-08-27 00:57:51 +02:00
  • b003b20c3a added else/elseif to config parser; uses new target_else member of action->value.condition Thomas Porzelt 2008-08-26 23:54:13 +02:00
  • 1371d4e49f added else/elseif to config parser; uses new target_else member of action->value.condition Thomas Porzelt 2008-08-26 23:53:54 +02:00
  • a211f528fc changed option default value assignment to callbacks Thomas Porzelt 2008-08-22 20:51:39 +02:00
  • 8649ce6cfe changed option default value assignment to callbacks Thomas Porzelt 2008-08-22 20:51:25 +02:00
  • 93618313e1 merged from lp Thomas Porzelt 2008-08-22 20:01:37 +02:00
  • 577928e8eb Fix double con_put in server_free Stefan Bühler 2008-08-18 16:43:55 +02:00
  • 475300d1aa Fix keep-alive again (missing cleanup) Stefan Bühler 2008-08-17 22:12:44 +02:00
  • 491b7880cb Fix keep-alive idle. Stefan Bühler 2008-08-17 21:27:09 +02:00
  • e7196f24e2 Added MIT license Stefan Bühler 2008-08-17 19:23:34 +02:00
  • 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) Stefan Bühler 2008-08-17 18:24:09 +02:00
  • 7bdce8aeb4 Added action/condition to option_copy Stefan Bühler 2008-08-17 14:12:03 +02:00
  • 978eb166d1 added option_copy(); fixed variable statements in config parser where assignments without parser func lead to OPTION_NONE options Thomas Porzelt 2008-08-17 02:29:05 +02:00
  • d3547c5318 added option_copy(); fixed variable statements in config parser where assignments without parser func lead to OPTION_NONE options Thomas Porzelt 2008-08-17 02:28:57 +02:00
  • 9775213cb9 added 'blank' function that returns a blank page to plugin_core Thomas Porzelt 2008-08-17 00:24:10 +02:00
  • ccaacfb285 added 'blank' function to plugin_core Thomas Porzelt 2008-08-17 00:23:52 +02:00
  • 5347dd06b3 implemented default values for options Thomas Porzelt 2008-08-15 20:38:28 +02:00
  • 6804b1df00 implemented default values for options Thomas Porzelt 2008-08-15 20:38:20 +02:00
  • 33aa9a0beb added event_handler setup; added srv->loop_flags; moved loop initialization to server_loop_init(); added ev_backend_string() to utils.c Thomas Porzelt 2008-08-15 18:21:33 +02:00
  • c5fb96870c added event_handler setup; added srv->loop_flags; moved loop initialization to server_loop_init(); added ev_backend_string() to utils.c Thomas Porzelt 2008-08-15 18:21:21 +02:00
  • fd4031beea added server.tag; small fixes and cleanups Thomas Porzelt 2008-08-15 17:18:53 +02:00
  • 3caab6a860 added server.tag option Thomas Porzelt 2008-08-15 17:17:04 +02:00
  • c1bc3b8e0a small cleanup in config parser; small fix in log.c Thomas Porzelt 2008-08-14 15:52:45 +02:00
  • 179021ca18 Fix memleak in writev backend Stefan Bühler 2008-08-14 15:02:24 +02:00
  • da2b322517 small change to config parser: comment now included in noise set; added first statistical counters Thomas Porzelt 2008-08-14 01:08:41 +02:00
  • 1ab2d0d6b3 small change to config parser: comment now included in noise set Thomas Porzelt 2008-08-14 01:08:03 +02:00
  • 4d55315487 added first counters Thomas Porzelt 2008-08-14 01:05:15 +02:00
  • 401a9ba356 changed operators ^= to =^ and $= to =$; introduced !^ and !$ Thomas Porzelt 2008-08-13 23:35:48 +02:00
  • 87afe58fcb changed operators ^= to =^ and $= to =$; introduced clean and ./waf Thomas Porzelt 2008-08-13 22:27:04 +02:00
  • c2b8ccdec4 changed operators ^= to =^ and $= to =$; introduced clean and ./waf Thomas Porzelt 2008-08-13 22:26:45 +02:00
  • ef910ea1fb added ^= (prefix match) and $= (suffix match) operators Thomas Porzelt 2008-08-13 22:11:24 +02:00
  • aeba5c0080 merged from sandbox Thomas Porzelt 2008-08-13 22:11:10 +02:00
  • f795f2463a added ^= (prefix match) and $= (suffix match) operators Thomas Porzelt 2008-08-13 22:10:20 +02:00
  • 5a1970e5d1 Add write as fallback for sendfile Stefan Bühler 2008-08-13 21:58:23 +02:00
  • b1c39dde0f merged from sandbox Thomas Porzelt 2008-08-13 21:56:24 +02:00
  • bb44fceb64 fixed invalid free in server.c Thomas Porzelt 2008-08-13 21:56:01 +02:00
  • 34b9edaa02 fixed invalid free in server.c Thomas Porzelt 2008-08-13 21:55:47 +02:00
  • 1bc8c85266 * replace strerror with g_strerror, kill errno from logging * starting chunked encoding filter * network write cleanup + sendfile backend (default for now) Stefan Bühler 2008-08-13 21:50:07 +02:00
  • 99a7b35e44 added header conditional check for normal config parser Thomas Porzelt 2008-08-13 20:08:25 +02:00
  • 89d3b204a7 added header conditional check for normal config parser Thomas Porzelt 2008-08-13 20:08:13 +02:00
  • 95fa874571 minor enhencements; added log.level and log.target options Thomas Porzelt 2008-08-13 19:58:25 +02:00
  • d234e396f8 merged from lp Thomas Porzelt 2008-08-13 19:58:01 +02:00
  • 1901397a0e minor enhencements; added log.level and log.target options Thomas Porzelt 2008-08-13 19:57:19 +02:00
  • 85c4f3852b Fix hostname parsing. Stefan Bühler 2008-08-13 19:52:57 +02:00
  • dd7d3b4777 added http_status_string() function; response.c now includes the right status string Thomas Porzelt 2008-08-13 02:18:49 +02:00
  • df16145d05 added http_status_string() function; response.c now includes the right status string Thomas Porzelt 2008-08-13 02:18:35 +02:00
  • ff7addce12 fixed fd initialization warning with -O2 in log.c Thomas Porzelt 2008-08-12 19:34:41 +02:00
  • 1798e226ff fixed fd initialization warning with -O2 in log.c Thomas Porzelt 2008-08-12 19:34:11 +02:00
  • 6bbda1a08b fixed segfault in chunkqueue with filename NULL; changed log_un/ref to use mutex; made core_handle_test more verbose; initial working version of config parser Thomas Porzelt 2008-08-12 19:09:05 +02:00
  • ef9b96e552 fixed chunkqueue segfault with NULL filename Thomas Porzelt 2008-08-12 19:04:55 +02:00
  • 3d1ce91482 merged from sandbox Thomas Porzelt 2008-08-12 17:15:34 +02:00
  • e93d1ef301 merged from lp Thomas Porzelt 2008-08-12 17:15:15 +02:00
  • b1000d2ca4 config parser intial working version; test action in core plugin with more outpot Thomas Porzelt 2008-08-12 17:09:05 +02:00
  • 6467329144 merged from lp Thomas Porzelt 2008-08-11 17:38:02 +02:00
  • 9d7d19c456 Fix hostname checking Stefan Bühler 2008-08-10 21:31:56 +02:00
  • 0d4b5ee989 Fix mmap offset calculation in chunk.c Stefan Bühler 2008-08-09 22:11:52 +02:00
  • b0615d2198 merged from lp Thomas Porzelt 2008-08-09 19:19:18 +02:00
  • a863b6f7e9 Added url/authority parsing, enabled simple static() action. Stefan Bühler 2008-08-09 17:20:12 +02:00
  • 754ee742b2 Start splitting network backends, added writev and TCP_CORK Stefan Bühler 2008-08-09 13:51:06 +02:00
  • 2d08b0b823 small changes Thomas Porzelt 2008-08-09 01:55:07 +02:00
  • 066d0f5342 Added plugin callbacks for content and close handling Stefan Bühler 2008-08-08 19:44:54 +02:00
  • 6d6fc095ab Fix typo in connections.c Stefan Bühler 2008-08-08 19:34:00 +02:00
  • 124e21ee7d Add 100-Continue handling Stefan Bühler 2008-08-08 19:12:36 +02:00
  • 6dcfc736c2 Add missing plugin_core.h for core options Stefan Bühler 2008-08-08 18:51:27 +02:00
  • b8e3535546 Enabled options, moved some initializing Stefan Bühler 2008-08-08 18:49:00 +02:00
  • 5fc77ca27a Fix 64-bit signed/unsigned compare warning. Stefan Bühler 2008-08-08 13:57:27 +02:00
  • 8de2c27ec6 Fix some bugs/warnings. Stefan Bühler 2008-08-07 22:52:53 +02:00
  • 1f0b3ac991 Fixed wscript so you can have CFLAGS in your environment while ./waf configure, e.g. CFLAGS=-O2 ./waf configure --with-all Stefan Bühler 2008-08-07 21:38:08 +02:00
  • 2546ce9259 Use ev_now for current timestamp, clean usage of shutdown (wait for eof before close) Stefan Bühler 2008-08-07 16:50:36 +02:00
  • 4a9ed5e8a3 Disable test binary Stefan Bühler 2008-08-07 16:49:44 +02:00
  • 03458817cc Updated TODO hints Stefan Bühler 2008-08-07 14:12:51 +02:00
  • 3964ce82b7 merged from lp Thomas Porzelt 2008-08-07 13:02:27 +02:00
  • 1ed36c93b9 Handle write errors (fixes ab keep-alive problems) Stefan Bühler 2008-08-07 02:25:02 +02:00
  • 76dcab54fc Capture SIGINT, SIGTERM and SIGPIPE. Stefan Bühler 2008-08-07 02:23:23 +02:00
  • 3b4e8f6f8d Add some request header checks. Stefan Bühler 2008-08-07 01:44:09 +02:00
  • 52c5b05713 Added some http header helpers Stefan Bühler 2008-08-07 01:23:04 +02:00
  • 3041e2429d Fix writing (unititialized var) Stefan Bühler 2008-08-07 01:21:53 +02:00
  • 9760d73a24 Fix chunks to not accept empty chunks (and to remove them in cq_skip) Stefan Bühler 2008-08-07 01:20:47 +02:00
  • e216fc5168 handle requests now :) - still many TODOs for error handling/keep alive/validating headers Stefan Bühler 2008-08-07 00:26:17 +02:00
  • 7dc2d5f337 merged from lp Thomas Porzelt 2008-08-06 23:53:19 +02:00
  • e6463f776b Enable static build. Stefan Bühler 2008-08-06 23:50:00 +02:00
  • 09481f470f changed log_ref to use mutex instead of atomic operations because those could still lead to race conditions Thomas Porzelt 2008-08-06 23:48:39 +02:00
  • 2fbc7b1408 Basic connection state machine Stefan Bühler 2008-08-06 20:46:42 +02:00
  • 24d1f61c87 reverted changes from r70 in server.c; enhanced config parser Thomas Porzelt 2008-08-05 21:21:31 +02:00
  • 708b5fc223 small fixes; call_setup() now looks in the right hashtable Thomas Porzelt 2008-08-05 19:32:33 +02:00
  • c2e6044315 con_get() now increases array size in steps of 10 Thomas Porzelt 2008-08-05 18:52:08 +02:00
  • 1844a53dd3 merged from lp Thomas Porzelt 2008-08-05 18:45:03 +02:00
  • a603d799f6 config parser changes; removed srv->mutex Thomas Porzelt 2008-08-05 18:10:22 +02:00
  • 0a514f657e server/connection/request functions Stefan Bühler 2008-08-05 17:08:32 +02:00
  • 0ab75876dc Merge Stefan Bühler 2008-08-05 00:30:29 +02:00
  • d1c1a1b06f Continue request parser Stefan Bühler 2008-08-05 00:25:42 +02:00
  • 4ae1c04b55 merged from lp Thomas Porzelt 2008-08-04 23:17:44 +02:00
  • c190daa908 merged from lp and enhanced config parser Thomas Porzelt 2008-08-04 23:16:49 +02:00