Stefan Bühler
48bf0071e4
[angel] Add basic module/plugin support
...
* renamed some module functions
14 years ago
Thomas Porzelt
087f06a07d
Fix singness warnings
14 years ago
Stefan Bühler
c8d26383c3
Fix shadow warnings
14 years ago
Stefan Bühler
3a1af99500
Include <stdio.h> and <stdlib.h> in settings.h for everyone.
14 years ago
Stefan Bühler
dfb1db14d7
Use pointer-sign warning in cmake und fix many of them.
14 years ago
Stefan Bühler
0ec334c887
Killed sys-strings.h (replaced with glib functions)
14 years ago
Stefan Bühler
72136b4d03
angel: some basic structs, code not ready yet (config parser "works")
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
595ce1fe13
Add wrk in vrequest, s/vr->con->wrk/vr->wrk/, removed some other (broken) usages of vr->con
14 years ago
Stefan Bühler
4e04ac6b8b
cmake: use builtin macros for build date
14 years ago
Stefan Bühler
7aaa764f49
Added vrequest_joblist_append_async (with a vrequest-reference handling)
14 years ago
Stefan Bühler
194db07279
Use GByteArray in mod_fastcgi
14 years ago
Stefan Bühler
611d7dcac3
Recode the sockaddr handling, fixing some bugs
14 years ago
Stefan Bühler
691939dbdc
Rename MEM_CHUNK to STRING_CHUNK and add new MEM_CHUNK with GByteArray as content
...
- GByteArray doesn't have a terminating zero, so we save memory; especially
if the real size is 2^n, GString would allocate 2^(n+1) bytes.
14 years ago
Thomas Porzelt
ab9a616f5d
optimize ram usage by freeing unused connections
14 years ago
Thomas Porzelt
ddb0448a96
rework stat_cache
14 years ago
Stefan Bühler
a0d963ef11
Fix printf checks with glib macro
14 years ago
Stefan Bühler
384bab3719
Forgot source/header for etag.{c,h}
14 years ago
Stefan Bühler
a62cdebb91
Fix static file/dirlist handling and add etag support
14 years ago
Stefan Bühler
b423170266
Rewrite l_g_string_from_int to l_g_string_append_int
14 years ago
Stefan Bühler
e020850dc8
Add vrequest_is_handled function
14 years ago
Stefan Bühler
9df3918e9b
Add l_g_string_from_int to utils - prints a gint64 to a GString
14 years ago
Stefan Bühler
d7e53a44de
Changed collect api: removed fdata_free (wasn't used) and return NULL from collect_start if collect finished before returning.
14 years ago
Thomas Porzelt
a9c75934a8
change counter format output
14 years ago
Thomas Porzelt
f9ca699307
add waitqueue_length()
14 years ago
Stefan Bühler
bedcc3d46a
Added mod_cache_disk_etag: caches produced content on disk and checks for it via etag.
14 years ago
Stefan Bühler
87cd65e98f
Don't check for NULL strings in CONST_STR_LEN
14 years ago
Stefan Bühler
12b421b9a9
Don't block fastcgi if limit on input queue is hit
14 years ago
Stefan Bühler
158f42aa0f
Add support for filters
14 years ago
Thomas Porzelt
7d88ae2e73
[utils] add l_g_string_prefix() and l_g_string_suffix()
14 years ago
Thomas Porzelt
0719779fd2
add ENCODING_URI to encoding functions
14 years ago
Thomas Porzelt
a888c34dbb
add encoding functions
14 years ago
Thomas Porzelt
4d2cf580df
add stat_cach_get_dir() to get directory listing; add stat_cache.ttl setup
14 years ago
Thomas Porzelt
004dfc1bf6
add spaces in waitqueue.h for readability
14 years ago
Thomas Porzelt
9a23f4465d
add dirent_buf_size() to utils
14 years ago
Stefan Bühler
2f9e612c99
Use chunkqueue-limit (setup in plugin_core)
14 years ago
Stefan Bühler
6ebc331215
Implement l_g_string_assign_len()
14 years ago
Stefan Bühler
39ecfa89e5
Add chunkqueue-limit framework
14 years ago
Thomas Porzelt
efab0ca75d
implement stat cache
14 years ago
Stefan Bühler
b033f0c194
Extended sockaddr_to_string for use in connect-failed error message in mod_fastcgi
14 years ago
Stefan Bühler
95fee3059b
Add handling for environment vars in backends
14 years ago
Stefan Bühler
5c797977c6
Add stderr log support in mod_fastcgi (split lines from backend in log.c)
15 years ago
Stefan Bühler
d29565a211
Split chunkiter_read into simple read() and mmap() with fallback read(); _mmap() may result in SIGBUS (e.g. truncated file) later.
15 years ago
Stefan Bühler
4a8ce0a63f
Redo boolean conditionals (physical.*) as real actions.
15 years ago
Stefan Bühler
587ee27cd0
Added response parser and used it in mod_fastcgi
15 years ago
Stefan Bühler
4a5aa5361e
Added/fixed chunked encoded transfer
15 years ago
Thomas Porzelt
70a495de6f
fix ev_tstamp vs. time_t problems in worker_current_timestamp()
15 years ago
Thomas Porzelt
7766bd8c34
save errno of stat() in request.physical struct to prevent repeated stat()s if failed
15 years ago
Thomas Porzelt
93bd5e2a6a
add additional paramter format_ndx to worker_current_timestamp()
15 years ago
Thomas Porzelt
2fb007bd3d
add http_version_string() to utils
15 years ago
Thomas Porzelt
d2cadb3b1e
add option server.name
15 years ago
Thomas Porzelt
85a3a4d091
added "if" to condition syntax (if req.path == "/foo" {})
...
added boolean conditions without operator or rvalue (if phys.is_dir {}, rvalue is always true)
added negated boolean conditions (if !phys.is_dir {}, rvalue is always false)
added physical.is_dir and .is_file conditionals
15 years ago
Thomas Porzelt
01068d7f1d
make docroot a function action instead of setting, add stat member to vr.physical and enable physical.size conditional
15 years ago
Stefan Bühler
d9ddd4fd3d
Remove out-of-fd-handling.
15 years ago
Stefan Bühler
54fd1b08e4
Cleanup some state machine handling
15 years ago
Thomas Porzelt
bf549bbe0d
add check for sizeof(off_t) to MODULE_VERSION_CHECK()
15 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)
15 years ago
Stefan Bühler
c56ade056f
Add vrequest "environment" (a GString -> GString hashtable)
15 years ago
Stefan Bühler
d30e1b018a
Added some backend/balancer helper, fixed backend-error handling.
15 years ago
Stefan Bühler
6636919623
Completed core balancer support, added a simple test balancer.
15 years ago
Thomas Porzelt
66f7e669dd
add log level "backend"
15 years ago
Stefan Bühler
025f0b5f84
Removed HANDLER_FINISHED, implemented real job queue and added some basic balancer structs
15 years ago
Stefan Bühler
20c3d8c109
Remove unused struct members
15 years ago
Stefan Bühler
20dfff0663
Cleanup log macros (moved from con to vrequest)
15 years ago
Stefan Bühler
c24704dad5
Move options from connection to vrequest
15 years ago
Thomas Porzelt
e344591265
unify level info placement in log makros
15 years ago
Thomas Porzelt
52d5978d64
export module_lookup()
15 years ago
Stefan Bühler
e8e60b3a04
Add clean ipv6+port parsing for listen()
15 years ago
Stefan Bühler
bb59776ea3
Handle errno in angel_fake_log
15 years ago
Stefan Bühler
324224fe2e
Implemented two angel "fake" functions
15 years ago
Thomas Porzelt
20e0a9e4e8
add http_method_string() to utils
15 years ago
Stefan Bühler
4a02223f7c
Added per-action context
15 years ago
Thomas Porzelt
736d8c6192
add server.max_keep_alive_requests option
15 years ago
Thomas Porzelt
58cf85f5d1
remove old log stuff
15 years ago
Thomas Porzelt
b0def14e1f
remove wrong ! from sendfile macro for linux
15 years ago
Thomas Porzelt
d2381954bf
removed old AIO defines from settings.h
15 years ago
Stefan Bühler
2040c059d1
Fix connection/network_write state machine
15 years ago
Stefan Bühler
7a496b610b
Fix comment style // -> /* */
15 years ago
Thomas Porzelt
6dbaaf5430
fix warnings about shadowed declarations of 'free' and 'value' in headers
15 years ago
Thomas Porzelt
4080ddcd16
cosmetic changes of 'defined x to defined(x)' in settings.h to unify usage
15 years ago
Thomas Porzelt
75ce595e5b
add LIGHT_OS_XYZ macros
15 years ago
Stefan Bühler
99733ef5a7
Add OS X sendfile implementation (and fix the freebsd one)
15 years ago
Thomas Porzelt
84b7487cc4
add USE_OSX_SENDFILE macro
15 years ago
Stefan Bühler
94b4dcc764
Generic sendfile implementation (supports linux,solaris and freebsd now)
15 years ago
Stefan Bühler
91d4868ef4
Move stats and throttle to network.c
15 years ago
Stefan Bühler
fae25515fa
Split waitqueue from utils
15 years ago
Stefan Bühler
3dceeb5916
Move include files into a separate directory and cleanup include order
15 years ago