1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Fold in some stuff to allow for matching of workers

to their actual scoreboard slots, independent of slot
ID.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@984188 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jim Jagielski
2010-08-10 19:46:58 +00:00
parent 10fc07caf8
commit c55a15fc2f
4 changed files with 75 additions and 14 deletions

View File

@@ -22,11 +22,17 @@
#include "apr_version.h"
#include "apr_hooks.h"
#include "apr_uuid.h"
#include "apr_date.h"
module AP_MODULE_DECLARE_DATA proxy_balancer_module;
static char balancer_nonce[APR_UUID_FORMATTED_LENGTH + 1];
#if 0
extern void proxy_update_members(proxy_balancer **balancer, request_rec *r,
proxy_server_conf *conf);
#endif
static int proxy_balancer_canon(request_rec *r, char *url)
{
char *host, *path;
@@ -467,6 +473,10 @@ static int proxy_balancer_pre_request(proxy_worker **worker,
/* Step 3: force recovery */
force_recovery(*balancer, r->server);
/* Step 3.5: Update member list for the balancer */
/* TODO: Implement as provider! */
/* proxy_update_members(balancer, r, conf); */
/* Step 4: find the session route */
runtime = find_session_route(*balancer, r, &route, &sticky, url);