Stefan Bühler
a663088a77
Add custom server socket callbacks (for ssl modules)
13 years ago
Stefan Bühler
56ff7ca32a
angel/lighty now synchronize the server state
13 years ago
Stefan Bühler
594987c29e
Add li_ev_safe_ref_and_stop macro and use it
13 years ago
Thomas Porzelt
e838c9b3cf
[core] Add liTimeFunc (gmtime_r, localtime_r) parameter to li_worker_current_timestamp()
13 years ago
Stefan Bühler
a061745193
Fix bugs found with the static clang analyzer ( http://clang-analyzer.llvm.org/ )
13 years ago
Stefan Bühler
f4f2bd1f38
Poison non-thread-safe functions and fix errors
13 years ago
Stefan Bühler
540ff7db02
Split sources into subdirs
13 years ago
Stefan Bühler
282a2d1b4a
Prefix LI_API functions with "li_"
13 years ago
Stefan Bühler
99b203e3d8
Prefix typenames, enums and some macros with "li" and "LI_"; CamelCase TypeNames
13 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)
13 years ago
Thomas Porzelt
b000f96170
[core] Fix setting of multiple workers
13 years ago
Stefan Bühler
48bf0071e4
[angel] Add basic module/plugin support
...
* renamed some module functions
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
611d7dcac3
Recode the sockaddr handling, fixing some bugs
14 years ago
Thomas Porzelt
d24e602713
increase default io timeout from 30s to 300s
14 years ago
Stefan Bühler
0eef3d7ee8
Use nonblocking sockets
14 years ago
Thomas Porzelt
93bd5e2a6a
add additional paramter format_ndx to worker_current_timestamp()
14 years ago
Stefan Bühler
d9ddd4fd3d
Remove out-of-fd-handling.
14 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)
14 years ago
Thomas Porzelt
58cf85f5d1
remove old log stuff
14 years ago
Stefan Bühler
3dceeb5916
Move include files into a separate directory and cleanup include order
14 years ago
Thomas Porzelt
358b9f95f1
implement throttling, change some time_t to ev_tstamp
14 years ago
Thomas Porzelt
b491e91c68
add io timeouts
14 years ago
Thomas Porzelt
245cecb1e2
add srv->started (timestamp) and srv->started_str (formatted ts)
14 years ago
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.
14 years ago
Stefan Bühler
566cbdb024
virtual requests; they replace a big part from connection.
14 years ago
Thomas Porzelt
5c564c7c0a
added srv->started_str, small fix in server_free()
14 years ago
Thomas Porzelt
59fdb03ee0
implement loading of modules
14 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
14 years ago
Thomas Porzelt
604042b24c
fixed segfault in server_free() if workers are not allocated yet; removed virtualrequest.h include from base.h
14 years ago
Thomas Porzelt
5150637e13
implemented port feature for listen setup; small memleak und config parser fixes
14 years ago
Stefan Bühler
d6b28e47aa
Fix segfault if config parser failed
14 years ago
Thomas Porzelt
30bae997eb
moved log cleanups to own function; fixed memleaks in config parser and plugin_core
14 years ago
Stefan Bühler
c54a085552
Implement clean default values for options
14 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)
14 years ago
Stefan Bühler
a88ca5238c
Add the "collect" framework, which collects results from a function executed in each worker context
14 years ago
Thomas Porzelt
292d013134
reworked logging functions; added 'log' and 'log.timestamp' options, removed 'log.level' and 'log.target' options
14 years ago
Stefan Bühler
721cb88985
Kill some memleaks
14 years ago
Stefan Bühler
00143835d4
Move the connection tables into the workers, so no locking needed for them.
14 years ago
Stefan Bühler
14cb73e80b
Set cpu affinity
14 years ago
Stefan Bühler
45849a4864
Add error reporting if ev_loop creation fails.
14 years ago
Stefan Bühler
c62f8f7945
Add more atomic protection
14 years ago
Stefan Bühler
58351b5ff0
Clean libev loops
14 years ago
Stefan Bühler
0a4230cced
Added basic notify + locking for workers
14 years ago
Stefan Bühler
798085f860
Fix some segfaults and add cleanup for worker split
14 years ago
Stefan Bühler
0fe9176d6f
Splitted worker from server; removed "server *srv" from most function which also have "connection *con"
14 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.
14 years ago
Thomas Porzelt
8649ce6cfe
changed option default value assignment to callbacks
14 years ago
Stefan Bühler
577928e8eb
Fix double con_put in server_free
14 years ago
Stefan Bühler
475300d1aa
Fix keep-alive again (missing cleanup)
14 years ago