2
0
Fork 0
Commit Graph

73 Commits (611d7dcac36265ddfb2cc75d07564bc9574a56ae)

Author SHA1 Message Date
Stefan Bühler 611d7dcac3 Recode the sockaddr handling, fixing some bugs 2009-04-03 14:29:55 +02:00
Thomas Porzelt d24e602713 increase default io timeout from 30s to 300s 2009-01-29 15:19:41 +01:00
Stefan Bühler 0eef3d7ee8 Use nonblocking sockets 2009-01-29 15:14:55 +01:00
Thomas Porzelt 93bd5e2a6a add additional paramter format_ndx to worker_current_timestamp() 2009-01-07 20:59:51 +01:00
Stefan Bühler d9ddd4fd3d Remove out-of-fd-handling. 2009-01-04 23:14:08 +01:00
Stefan Bühler c458377d4a Added mod_fastcgi, some api functions for it, and some new optional compiler warnings (which led to many small changes) 2009-01-01 16:44:42 +01:00
Thomas Porzelt 58cf85f5d1 remove old log stuff 2008-12-02 15:58:06 +01:00
Stefan Bühler 3dceeb5916 Move include files into a separate directory and cleanup include order 2008-11-16 21:33:53 +01:00
Thomas Porzelt 358b9f95f1 implement throttling, change some time_t to ev_tstamp 2008-11-12 22:16:52 +01:00
Thomas Porzelt b491e91c68 add io timeouts 2008-11-10 15:39:03 +01:00
Thomas Porzelt 245cecb1e2 add srv->started (timestamp) and srv->started_str (formatted ts) 2008-11-03 14:33:07 +01:00
Stefan Bühler 649f7baf78 Modify header usage; include all core headers from base.h and forbid direct including of core headers. Move typedefs into separate header. 2008-10-28 22:11:50 +01:00
Stefan Bühler 73fff068c3 Merge virtual requests 2008-10-25 15:25:02 +02:00
Stefan Bühler 566cbdb024 virtual requests; they replace a big part from connection. 2008-10-25 14:53:57 +02:00
Thomas Porzelt 5c564c7c0a added srv->started_str, small fix in server_free() 2008-10-24 17:50:39 +02:00
Thomas Porzelt 59fdb03ee0 implement loading of modules 2008-10-22 16:54:44 +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
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 d6b28e47aa Fix segfault if config parser failed 2008-09-27 12:44:04 +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 c54a085552 Implement clean default values for options 2008-09-26 17:09:30 +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
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
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 14cb73e80b Set cpu affinity 2008-09-09 20:47:10 +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 0a4230cced Added basic notify + locking for workers 2008-09-09 02:22:21 +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
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. 2008-09-02 20:30:39 +02:00
Thomas Porzelt 8649ce6cfe changed option default value assignment to callbacks 2008-08-22 20:51:25 +02:00
Stefan Bühler 577928e8eb Fix double con_put in server_free 2008-08-18 16:43:55 +02:00
Stefan Bühler 475300d1aa Fix keep-alive again (missing cleanup) 2008-08-17 22:12:44 +02:00
Stefan Bühler 491b7880cb Fix keep-alive idle. 2008-08-17 21:27:09 +02:00
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)
2008-08-17 18:24:09 +02:00
Thomas Porzelt 6804b1df00 implemented default values for options 2008-08-15 20:38:20 +02:00
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 2008-08-15 18:21:21 +02:00
Thomas Porzelt 4d55315487 added first counters 2008-08-14 01:05:15 +02:00
Thomas Porzelt bb44fceb64 fixed invalid free in server.c 2008-08-13 21:56:01 +02:00
Thomas Porzelt 34b9edaa02 fixed invalid free in server.c 2008-08-13 21:55:47 +02:00
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)
2008-08-13 21:50:07 +02:00
Stefan Bühler 066d0f5342 Added plugin callbacks for content and close handling 2008-08-08 19:44:54 +02:00
Stefan Bühler b8e3535546 Enabled options, moved some initializing 2008-08-08 18:49:00 +02:00
Stefan Bühler 8de2c27ec6 Fix some bugs/warnings. 2008-08-07 22:52:53 +02:00
Stefan Bühler 2546ce9259 Use ev_now for current timestamp, clean usage of shutdown (wait for eof before close) 2008-08-07 16:50:36 +02:00