This website requires JavaScript.
4a02223f7c
Added per-action context
stbuehler
2008-12-10 00:23:27 +01:00
f74d274589
Add other compare operators to lua frontend
stbuehler
2008-12-09 22:38:55 +01:00
e438fb58ab
Fix "notequal" string comparison bug
stbuehler
2008-12-09 22:38:37 +01:00
4ef644de88
Fix cmake ipv6 detection
stbuehler
2008-12-09 21:30:37 +01:00
736d8c6192
add server.max_keep_alive_requests option
Thomas Porzelt
2008-12-07 21:46:29 +01:00
d3bfcf9d15
add special chars in strings through \n \" etc. to config parser
Thomas Porzelt
2008-12-07 01:36:38 +01:00
58cf85f5d1
remove old log stuff
Thomas Porzelt
2008-12-02 15:58:06 +01:00
4e876d4153
remove unnecessary \n from VR_TRACE() in core_handle_static()
Thomas Porzelt
2008-12-02 00:50:30 +01:00
096e7667be
add LIGHTTPD_REVISION define and output for -v when compiling from bzr (only waf for now)
Thomas Porzelt
2008-11-25 15:56:12 +01:00
b0def14e1f
remove wrong ! from sendfile macro for linux
Thomas Porzelt
2008-11-23 23:47:10 +01:00
172ddd69ee
fix wrong define in wscript for writev
Thomas Porzelt
2008-11-23 22:36:00 +01:00
d8874eab5f
removed unused vars from network_write.c
Thomas Porzelt
2008-11-23 22:26:23 +01:00
be8836a57c
remove old statistics code from network_write.c
Thomas Porzelt
2008-11-23 22:09:51 +01:00
7582742257
remove connection from throttle queue when resetting
Thomas Porzelt
2008-11-23 18:23:45 +01:00
d5e7aa94a5
fix waitqueue
Thomas Porzelt
2008-11-23 18:23:05 +01:00
865aea2ce0
prevent double decrement of wrk->connection_load and active connections
Thomas Porzelt
2008-11-23 18:21:45 +01:00
f02689bafb
remove mandatory parameter for libdl, some systems don't have a special lib for it (freebsd)
Thomas Porzelt
2008-11-21 02:25:10 +01:00
2fd657cb0b
enable setting of CFLAGS via environment var in wscript
Thomas Porzelt
2008-11-21 02:00:13 +01:00
7096926d05
fix check for linux platform in wscript
Thomas Porzelt
2008-11-21 00:44:13 +01:00
928b8d52c1
update waf to 1.5, rewrite wscripts
Thomas Porzelt
2008-11-21 00:31:44 +01:00
d2381954bf
removed old AIO defines from settings.h
Thomas Porzelt
2008-11-20 20:16:29 +01:00
304263f4a1
fix warnings from plugin_core.c
Thomas Porzelt
2008-11-20 16:40:36 +01:00
24c7423376
add temporary hack to disable sched_setaffinity when OS != linux
Thomas Porzelt
2008-11-20 03:17:50 +01:00
031b6b54c7
add check for HAVE_IPV6 to sockaddr_to_string()
Thomas Porzelt
2008-11-20 03:15:40 +01:00
2df4d9686b
fix wrong parameter con instead of new vr in network.c when USE_SENDFILE not defined
Thomas Porzelt
2008-11-20 00:16:57 +01:00
0994052566
fix wrong placement of #endif in condition.c => broken code when HAVE_IPV6 not defined
Thomas Porzelt
2008-11-20 00:13:51 +01:00
2040c059d1
Fix connection/network_write state machine
stbuehler
2008-11-18 11:14:57 +01:00
7a496b610b
Fix comment style // -> /* */
stbuehler
2008-11-18 11:03:59 +01:00
6dbaaf5430
fix warnings about shadowed declarations of 'free' and 'value' in headers
Thomas Porzelt
2008-11-18 21:43:02 +01:00
4080ddcd16
cosmetic changes of 'defined x to defined(x)' in settings.h to unify usage
Thomas Porzelt
2008-11-18 21:36:31 +01:00
75ce595e5b
add LIGHT_OS_XYZ macros
Thomas Porzelt
2008-11-18 21:12:10 +01:00
1954f46a03
return NETWORK_STATUS_WAIT_FOR_AIO_EVENT instead of NETWORK_STATUS_WAIT_FOR_EVENT when throttling
Thomas Porzelt
2008-11-17 23:08:55 +01:00
06225998c6
Fix typos in sendfile (again)
stbuehler
2008-11-17 21:50:03 +01:00
ec16ebea3c
Fix typos in sendfile
stbuehler
2008-11-17 21:42:52 +01:00
99733ef5a7
Add OS X sendfile implementation (and fix the freebsd one)
stbuehler
2008-11-17 20:54:19 +01:00
84b7487cc4
add USE_OSX_SENDFILE macro
Thomas Porzelt
2008-11-17 20:24:36 +01:00
94b4dcc764
Generic sendfile implementation (supports linux,solaris and freebsd now)
stbuehler
2008-11-17 20:23:16 +01:00
91d4868ef4
Move stats and throttle to network.c
stbuehler
2008-11-17 19:26:41 +01:00
fae25515fa
Split waitqueue from utils
stbuehler
2008-11-17 10:26:25 +01:00
463d1c6435
Fix modules and waf for new include dir
stbuehler
2008-11-16 22:16:52 +01:00
6c573e5e00
Check for POSIX_FADV_SEQUENTIAL before using it
stbuehler
2008-11-16 22:06:28 +01:00
3dceeb5916
Move include files into a separate directory and cleanup include order
stbuehler
2008-11-16 21:33:53 +01:00
358b9f95f1
implement throttling, change some time_t to ev_tstamp
Thomas Porzelt
2008-11-12 22:16:52 +01:00
e9f8b51452
add LOG_TYPE_NONE that doesn't log anything
Thomas Porzelt
2008-11-12 17:38:32 +01:00
a2a0818cb4
remove cast to time_t in CUR_TS() makro. it caused some deviation
Thomas Porzelt
2008-11-12 02:11:43 +01:00
d56e5c2ea9
implement waitqueues (utils), change connection io timeouts to use those
Thomas Porzelt
2008-11-12 02:09:52 +01:00
8161336538
add fallback static action if built-in cfg parser used
Thomas Porzelt
2008-11-10 22:48:13 +01:00
b491e91c68
add io timeouts
Thomas Porzelt
2008-11-10 15:39:03 +01:00
abb7bc1067
fix segfault when no host header in request
Thomas Porzelt
2008-11-10 02:16:02 +01:00
64e823f83a
use g_mutex instead of g_static_mutex in profiler.c
Thomas Porzelt
2008-11-03 15:21:46 +01:00
bfad826aa5
fix small memleak in worker_add_closing_socket()
Thomas Porzelt
2008-11-03 15:20:49 +01:00
67f89abffc
add mod_status
Thomas Porzelt
2008-11-03 15:19:23 +01:00
0a63fc8058
add client addr string and traffic stats for connections and workers
Thomas Porzelt
2008-11-03 15:18:46 +01:00
2538f522ec
add sockaddr_to_string() and counter_format2() to utils.c
Thomas Porzelt
2008-11-03 15:10:25 +01:00
245cecb1e2
add srv->started (timestamp) and srv->started_str (formatted ts)
Thomas Porzelt
2008-11-03 14:33:07 +01:00
1d133a52ed
add missing free if -m option specified
Thomas Porzelt
2008-11-02 12:58:39 +01:00
649f7baf78
Modify header usage; include all core headers from base.h and forbid direct including of core headers. Move typedefs into separate header.
stbuehler
2008-10-28 22:11:50 +01:00
bdce397e70
get rid of global vars in mod_fortune
Thomas Porzelt
2008-10-27 20:12:52 +01:00
84fb6a5574
add missing call to p->free() in plugin_free
Thomas Porzelt
2008-10-27 20:12:48 +01:00
7954e0f8d3
Modify vrequest_error
stbuehler
2008-10-27 17:49:06 +01:00
9b2773750e
update mod_fortune for virtual request code, readd to wscript
Thomas Porzelt
2008-10-26 13:33:02 +01:00
f4725264de
add virtualrequest.c to wscript, temporarily remove mod_fortune
Thomas Porzelt
2008-10-25 19:51:30 +02:00
b83e3a29ce
Fix vrequest merge
stbuehler
2008-10-25 18:01:02 +02:00
73fff068c3
Merge virtual requests
stbuehler
2008-10-25 15:25:02 +02:00
566cbdb024
virtual requests; they replace a big part from connection.
stbuehler
2008-10-25 14:53:57 +02:00
9430770903
[cmake] Add module support
stbuehler
2008-10-25 14:48:12 +02:00
4b24952c02
Change cmake required version to 2.6.0
stbuehler
2008-10-25 13:45:41 +02:00
5c564c7c0a
added srv->started_str, small fix in server_free()
Thomas Porzelt
2008-10-24 17:50:39 +02:00
d7bfbde1fc
removeleft over testing code from mod_fortune
Thomas Porzelt
2008-10-23 18:23:13 +02:00
616180e9ac
add mod_fortune
Thomas Porzelt
2008-10-22 17:11:32 +02:00
59fdb03ee0
implement loading of modules
Thomas Porzelt
2008-10-22 16:54:44 +02:00
bbb3c8c69d
improved profiler (hashfunc and free-list)
Thomas Porzelt
2008-10-18 19:28:37 +02:00
24777f99d7
tiny race fix for profiler_free(); added profiler_dump_table()
Thomas Porzelt
2008-10-18 00:42:34 +02:00
eb73fe1651
changed profiler from glib to own implementation that doesn't leak all the memory...
Thomas Porzelt
2008-10-18 00:06:06 +02:00
b5f2442d5f
added profile_mem action that dumps memory stats to stdout, enable with LIGHTY_PROFILE_MEM=true env var
Thomas Porzelt
2008-10-17 18:08:40 +02:00
ed347d2f0c
small memory fix in log.c
Thomas Porzelt
2008-10-17 18:07:38 +02:00
5933f9b3c5
use value_list_free() in core_header_free() from plugin_core.c
Thomas Porzelt
2008-10-04 20:00:10 +02:00
2ac5c5c0a5
fix http_header_append and http_header_overwrite
Thomas Porzelt
2008-10-04 03:31:17 +02:00
5dde1fafb5
add header_add, _append and _overwrite actions to plugin_core
Thomas Porzelt
2008-10-04 03:21:31 +02:00
29bf342675
fix erronous free when no configfile specified
Thomas Porzelt
2008-10-03 02:27:42 +02:00
20956e757e
add mimetype info to static action
Thomas Porzelt
2008-10-03 01:50:47 +02:00
24f4a86576
added 'log' option parser error handling
Thomas Porzelt
2008-10-03 00:59:59 +02:00
d7b17a7746
add 'docroot' option, remove 'physical' action
Thomas Porzelt
2008-10-03 00:52:46 +02:00
29c962fe06
add mime_types option and mimetype_get() function
Thomas Porzelt
2008-10-02 21:46:06 +02:00
107798b883
better http_status_to_str()
Thomas Porzelt
2008-10-02 17:43:05 +02:00
34281b50f1
send proper error pages
Thomas Porzelt
2008-10-02 17:38:57 +02:00
eb5aa9d9d4
fix and comment ip hashing functions
Thomas Porzelt
2008-10-02 02:37:36 +02:00
21c391da66
ipv4 and ipv6 hashing functions
Thomas Porzelt
2008-10-02 02:33:51 +02:00
f23b051c30
moved freeing of value after parsing in plugin_set_default_option(); made that function static
Thomas Porzelt
2008-10-02 00:13:07 +02:00
472e7a81a9
changed srv->option_def_values to GArray and intialization of default values; enabled overriding of default values in config parser
Thomas Porzelt
2008-10-01 22:20:31 +02:00
604042b24c
fixed segfault in server_free() if workers are not allocated yet; removed virtualrequest.h include from base.h
Thomas Porzelt
2008-09-30 20:26:21 +02:00
36b0ae3628
Move request parser data into connection struct
stbuehler
2008-09-29 17:07:53 +02:00
7cd0b2aaf6
Revert: Add refcount to http headers
stbuehler
2008-09-29 15:46:58 +02:00
de6996268f
Add refcount to http headers
stbuehler
2008-09-29 13:02:30 +02:00
5150637e13
implemented port feature for listen setup; small memleak und config parser fixes
Thomas Porzelt
2008-09-27 17:06:43 +02:00
e1504a252f
free value always from the calling function
stbuehler
2008-09-27 12:45:43 +02:00
d6b28e47aa
Fix segfault if config parser failed
stbuehler
2008-09-27 12:44:04 +02:00
480de71283
small memleak fix
Thomas Porzelt
2008-09-27 00:37:50 +02:00
5e1ebf3c05
fixed small leak (config_path parameter)
Thomas Porzelt
2008-09-27 00:17:19 +02:00
30bae997eb
moved log cleanups to own function; fixed memleaks in config parser and plugin_core
Thomas Porzelt
2008-09-27 00:09:12 +02:00