Changeset 529
- Timestamp:
- 12/21/06 19:57:43 (2 years ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (4 diffs)
- cherokee/trunk/cherokee/Makefile.am (modified) (3 diffs)
- cherokee/trunk/cherokee/balancer.c (modified) (3 diffs)
- cherokee/trunk/cherokee/handler_file.c (modified) (1 diff)
- cherokee/trunk/cherokee/handler_mirror.c (added)
- cherokee/trunk/cherokee/handler_mirror.h (added)
- cherokee/trunk/cherokee/source.c (modified) (1 diff)
- cherokee/trunk/cherokee/source.h (modified) (1 diff)
- cherokee/trunk/configure.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r528 r529 1 2006-12-21 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 3 * cherokee/balancer.c (cherokee_balancer_configure): Added a new 4 "host" type. It allows to add pure host nodes to a balancer (so 5 far, it only supported "interpreter" entries). 6 7 * configure.in, cherokee/Makefile.am: Added support for the new 8 mirror module. 9 10 * cherokee/source.c (cherokee_source_new): Added new function. 11 12 * cherokee/handler_mirror.h, cherokee/handler_mirror.c: Added new 13 handler. It implements a redirector based on the balancer 14 modules. Basically, it relays the request on a host port pair and 15 then forwards the response to the client. 16 1 17 2006-12-19 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 18 … … 1979 1995 1980 1996 * cherokee/header.c (cherokee_header_get_request_w_args): Added 1981 new func ion.1997 new function. 1982 1998 1983 1999 * qa/107-Priority1.py, qa/108-Priority2.py, qa/109-Priority3.py, … … 4565 4581 2004-05-23 Alvaro Lopez Ortega <alvaro@alobbs.com> 4566 4582 4567 * src/main.c (panic_handler): Func ion `panic' has been renamed to4583 * src/main.c (panic_handler): Function `panic' has been renamed to 4568 4584 panic_handler because it was causing a linkage error on MacOS X. 4569 4585 … … 6577 6593 6578 6594 * aclocal.m4 (HAVE_PTHREAD): Removed SAMBA_SENDFILE 6579 func ion. Added sendfile.samba.m46595 function. Added sendfile.samba.m4 6580 6596 6581 6597 * etr_socket_nsl.m4: Added new func ETR_SOCKET_NSL cherokee/trunk/cherokee/Makefile.am
r495 r529 350 350 else 351 351 dynamic_handler_proxy_lib = libplugin_proxy.la 352 endif 353 354 355 # 356 # Handler mirror 357 # 358 handler_mirror = \ 359 handler_mirror.c \ 360 handler_mirror.h 361 362 libplugin_mirror_la_LDFLAGS = $(module_ldflags) 363 libplugin_mirror_la_SOURCES = $(handler_mirror) 364 libplugin_mirror_la_LIBADD = libcherokee-client.la 365 366 if STATIC_HANDLER_MIRROR 367 static_handler_mirror_src = $(handler_mirror) 368 else 369 dynamic_handler_mirror_lib = libplugin_mirror.la 352 370 endif 353 371 … … 791 809 $(static_handler_nn_src) \ 792 810 $(static_handler_proxy_src) \ 811 $(static_handler_mirror_src) \ 793 812 $(static_handler_server_info_src) \ 794 813 \ … … 921 940 $(dynamic_handler_redir_lib) \ 922 941 $(dynamic_handler_proxy_lib) \ 942 $(dynamic_handler_mirror_lib) \ 923 943 $(dynamic_handler_error_redir_lib) \ 924 944 $(dynamic_handler_common_lib) \ cherokee/trunk/cherokee/balancer.c
r476 r529 67 67 cherokee_balancer_configure (cherokee_balancer_t *balancer, cherokee_config_node_t *conf) 68 68 { 69 ret_t ret; 70 cherokee_list_t *i; 71 cherokee_buffer_t *buf; 72 cherokee_boolean_t interpreter = false; 69 ret_t ret; 70 cherokee_list_t *i; 71 cherokee_buffer_t *buf; 72 cherokee_boolean_t interpreter = false; 73 cherokee_boolean_t host = false; 73 74 74 75 /* Look for the type of the source objects … … 82 83 if (equal_buf_str (buf, "interpreter")) { 83 84 interpreter = true; 85 } else if (equal_buf_str (buf, "host")) { 86 host = true; 84 87 } else { 85 88 PRINT_ERROR ("ERROR: Balancer: Unknown type '%s'\n", buf->buf); … … 106 109 107 110 src = SOURCE(src2); 111 112 } else if (host) { 113 ret = cherokee_source_new (&src); 114 if (ret != ret_ok) return ret; 115 116 ret = cherokee_source_configure (src, subconf); 117 if (ret != ret_ok) return ret; 108 118 } 109 119 cherokee/trunk/cherokee/handler_file.c
r527 r529 626 626 627 627 ret_t 628 cherokee_handler_file_step (cherokee_handler_file_t *fhdl, 629 cherokee_buffer_t *buffer) 628 cherokee_handler_file_step (cherokee_handler_file_t *fhdl, cherokee_buffer_t *buffer) 630 629 { 631 630 off_t total; cherokee/trunk/cherokee/source.c
r500 r529 29 29 30 30 #define ENTRIES "source,src" 31 32 33 ret_t 34 cherokee_source_new (cherokee_source_t **src) 35 { 36 CHEROKEE_NEW_STRUCT (n, source); 37 38 *src = n; 39 return cherokee_source_init (n); 40 } 31 41 32 42 cherokee/trunk/cherokee/source.h
r387 r529 49 49 #define SOURCE(s) ((cherokee_source_t *)(s)) 50 50 51 ret_t cherokee_source_init (cherokee_source_t *src); 52 ret_t cherokee_source_mrproper (cherokee_source_t *src); 53 ret_t cherokee_source_configure (cherokee_source_t *src, cherokee_config_node_t *conf); 51 ret_t cherokee_source_new (cherokee_source_t **src); 52 ret_t cherokee_source_init (cherokee_source_t *src); 53 ret_t cherokee_source_mrproper (cherokee_source_t *src); 54 ret_t cherokee_source_configure (cherokee_source_t *src, cherokee_config_node_t *conf); 54 55 55 ret_t cherokee_source_connect (cherokee_source_t *src, cherokee_socket_t *socket); 56 56 ret_t cherokee_source_connect (cherokee_source_t *src, cherokee_socket_t *socket); 57 57 58 58 CHEROKEE_END_DECLS cherokee/trunk/configure.in
r528 r529 991 991 [use_static_module="$use_static_module $enableval "],[]) 992 992 993 modules="error_redir server_info file admin dirlist fcgi fastcgi scgi redir common nn cgi phpcgi proxy gzip ncsa combined w3c pam ldap mysql htpasswd plain htdigest round_robin"993 modules="error_redir server_info file admin dirlist fcgi fastcgi scgi redir common nn cgi phpcgi proxy mirror gzip ncsa combined w3c pam ldap mysql htpasswd plain htdigest round_robin" 994 994 995 995 # Remove modules that will not be compiles … … 1050 1050 AM_CONDITIONAL(STATIC_HANDLER_PHPCGI, grep phpcgi $conf_h >/dev/null) 1051 1051 AM_CONDITIONAL(STATIC_HANDLER_PROXY, grep proxy $conf_h >/dev/null) 1052 AM_CONDITIONAL(STATIC_HANDLER_MIRROR, grep mirror $conf_h >/dev/null) 1052 1053 AM_CONDITIONAL(STATIC_ENCODER_GZIP, grep gzip $conf_h >/dev/null) 1053 1054 AM_CONDITIONAL(STATIC_LOGGER_NCSA, grep ncsa $conf_h >/dev/null)