2
0
Fork 0
Commit Graph

247 Commits

Author SHA1 Message Date
Thomas Porzelt 34281b50f1 send proper error pages 2008-10-02 17:38:57 +02:00
Thomas Porzelt eb5aa9d9d4 fix and comment ip hashing functions 2008-10-02 02:37:36 +02:00
Thomas Porzelt 21c391da66 ipv4 and ipv6 hashing functions 2008-10-02 02:33:51 +02:00
Thomas Porzelt f23b051c30 moved freeing of value after parsing in plugin_set_default_option(); made that function static 2008-10-02 00:13:07 +02:00
Thomas Porzelt 472e7a81a9 changed srv->option_def_values to GArray and intialization of default values; enabled overriding of default values in config parser 2008-10-01 22:20:31 +02:00
Thomas Porzelt 604042b24c fixed segfault in server_free() if workers are not allocated yet; removed virtualrequest.h include from base.h 2008-09-30 20:26:21 +02:00
Stefan Bühler 36b0ae3628 Move request parser data into connection struct 2008-09-29 17:07:53 +02:00
Stefan Bühler 7cd0b2aaf6 Revert: Add refcount to http headers 2008-09-29 15:46:58 +02:00
Stefan Bühler de6996268f Add refcount to http headers 2008-09-29 13:02:30 +02:00
Thomas Porzelt 5150637e13 implemented port feature for listen setup; small memleak und config parser fixes 2008-09-27 17:06:43 +02:00
Stefan Bühler e1504a252f free value always from the calling function 2008-09-27 12:45:43 +02:00
Stefan Bühler d6b28e47aa Fix segfault if config parser failed 2008-09-27 12:44:04 +02:00
Thomas Porzelt 480de71283 small memleak fix 2008-09-27 00:37:50 +02:00
Thomas Porzelt 5e1ebf3c05 fixed small leak (config_path parameter) 2008-09-27 00:17:19 +02:00
Thomas Porzelt 30bae997eb moved log cleanups to own function; fixed memleaks in config parser and plugin_core 2008-09-27 00:09:12 +02:00
Stefan Bühler 5d27591a49 Fix return TRUE in a void function 2008-09-26 18:06:24 +02:00
Stefan Bühler 34c513c645 Fix waf wscript for the renamed files 2008-09-26 18:06:07 +02:00
Stefan Bühler c54a085552 Implement clean default values for options 2008-09-26 17:09:30 +02:00
Stefan Bühler 5d0d12c0bd Updated cmake ragel rules to build config parser with -T0 instead of -T1 2008-09-26 16:17:04 +02:00
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)
2008-09-26 16:11:08 +02:00
Stefan Bühler a88ca5238c Add the "collect" framework, which collects results from a function executed in each worker context 2008-09-26 10:36:36 +02:00
Stefan Bühler 3c00360259 log requests/sec stats per worker 2008-09-25 22:49:32 +02:00
Stefan Bühler a17aa92250 Move stats into worker 2008-09-25 16:59:09 +02:00
Thomas Porzelt 593b0d1427 fixed wrong comment in worker.h 2008-09-25 00:02:16 +02:00
Thomas Porzelt 5a1acd8be9 reworked parts of config_parser 2008-09-25 00:00:23 +02:00
Thomas Porzelt 9ba30eccbd moved string_destroy_notify() from base.c to utils.c, fixed parameter definition 2008-09-24 23:55:20 +02:00
Thomas Porzelt 1faaf71de4 added option_to_string() 2008-09-24 23:50:38 +02:00
Thomas Porzelt 292d013134 reworked logging functions; added 'log' and 'log.timestamp' options, removed 'log.level' and 'log.target' options 2008-09-24 23:43:22 +02:00
Thomas Porzelt 6fe8eb603d fixed missing \r\n after response headers 2008-09-24 22:07:00 +02:00
Thomas Porzelt a2ecebf3c3 changed waf build script to not use ragel optimization for config parser 2008-09-24 21:58:53 +02:00
Stefan Bühler 721cb88985 Kill some memleaks 2008-09-24 20:02:47 +02:00
Stefan Bühler 00143835d4 Move the connection tables into the workers, so no locking needed for them. 2008-09-24 18:59:49 +02:00
Stefan Bühler 2b9147ba50 Fix missing ':' after case EWOULDBLOCK 2008-09-23 13:09:07 +02:00
Stefan Bühler bca094fe9f Add cmake support 2008-09-18 09:32:44 +02:00
Stefan Bühler bfd20c2662 Add missing includes for open/fcntl 2008-09-18 09:14:57 +02:00
Stefan Bühler e87e6a9a58 Fix indentation in wscript 2008-09-18 09:14:39 +02:00
Stefan Bühler ac1f66ee1d Fix pcre 2008-09-18 09:13:32 +02:00
Thomas Porzelt 623e10d7a0 added missing insert into hashtable for logs, removed lock from log_free_unlocked() 2008-09-10 00:07:42 +02:00
Stefan Bühler 14cb73e80b Set cpu affinity 2008-09-09 20:47:10 +02:00
Stefan Bühler 267b0bf6fc shutdown sockets immediatly if srv->exiting is true 2008-09-09 18:09:20 +02:00
Stefan Bühler 45849a4864 Add error reporting if ev_loop creation fails. 2008-09-09 18:08:45 +02:00
Stefan Bühler c62f8f7945 Add more atomic protection 2008-09-09 18:03:18 +02:00
Stefan Bühler 58351b5ff0 Clean libev loops 2008-09-09 17:27:37 +02:00
Stefan Bühler dbc9859ce8 Use atomic refcount operations 2008-09-09 16:41:02 +02:00
Stefan Bühler 47c0acf4c2 Changed header implementation from hash-table to double linked list 2008-09-09 16:38:40 +02:00
Stefan Bühler f5cf939d5a Added "workers(x)" setup function 2008-09-09 11:31:08 +02:00
Stefan Bühler 0a4230cced Added basic notify + locking for workers 2008-09-09 02:22:21 +02:00
Stefan Bühler ee59334e9d Only send regular files with static handler 2008-09-08 02:28:55 +02:00
Stefan Bühler 798085f860 Fix some segfaults and add cleanup for worker split 2008-09-08 02:25:55 +02:00
Stefan Bühler 0fe9176d6f Splitted worker from server; removed "server *srv" from most function which also have "connection *con" 2008-09-08 02:20:55 +02:00