httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy proxy_balancer.c
Date Tue, 24 Aug 2004 11:27:31 GMT
mturk       2004/08/24 04:27:31

  Modified:    modules/proxy proxy_balancer.c
  Log:
  Add session route to request rec notes if present.
  The session route is used only in proxy_ajp for now and
  passed inside AJP header message.
  
  Revision  Changes    Path
  1.9       +11 -6     httpd-2.0/modules/proxy/proxy_balancer.c
  
  Index: proxy_balancer.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_balancer.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- proxy_balancer.c	13 Aug 2004 12:11:50 -0000	1.8
  +++ proxy_balancer.c	24 Aug 2004 11:27:31 -0000	1.9
  @@ -329,6 +329,11 @@
       PROXY_BALANCER_UNLOCK(*balancer);
       
       access_status = rewrite_url(r, *worker, url);
  +    /* Add the session route to request notes if present */
  +    if (route) {
  +        apr_table_setn(r->notes, "session-sticky", (*balancer)->sticky);
  +        apr_table_setn(r->notes, "session-route", route);
  +    }
       ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
                    "proxy_balancer_pre_request rewriting to %s", *url);
       ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
  @@ -378,10 +383,10 @@
   
   module AP_MODULE_DECLARE_DATA proxy_balancer_module = {
       STANDARD20_MODULE_STUFF,
  -    NULL,		/* create per-directory config structure */
  -    NULL,		/* merge per-directory config structures */
  -    NULL,		/* create per-server config structure */
  -    NULL,		/* merge per-server config structures */
  -    NULL,		/* command apr_table_t */
  -    ap_proxy_balancer_register_hook	/* register hooks */
  +    NULL,       /* create per-directory config structure */
  +    NULL,       /* merge per-directory config structures */
  +    NULL,       /* create per-server config structure */
  +    NULL,       /* merge per-server config structures */
  +    NULL,       /* command apr_table_t */
  +    ap_proxy_balancer_register_hook /* register hooks */
   };
  
  
  

Mime
View raw message