tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/ajp/proxy mod_proxy.h
Date Mon, 09 Aug 2004 15:06:24 GMT
mturk       2004/08/09 08:06:24

  Modified:    ajp/proxy mod_proxy.h
  Log:
  Add route and redirect to worker so they can be set trough configuration.
  Add worker status flag definitions.
  
  Revision  Changes    Path
  1.28      +11 -2     jakarta-tomcat-connectors/ajp/proxy/mod_proxy.h
  
  Index: mod_proxy.h
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/proxy/mod_proxy.h,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- mod_proxy.h	9 Aug 2004 09:54:07 -0000	1.27
  +++ mod_proxy.h	9 Aug 2004 15:06:24 -0000	1.28
  @@ -213,6 +213,15 @@
       proxy_conn_rec *conn;   /* Single connection for prefork mpm's */
   };
   
  +/* woker status flags */
  +#define PROXY_WORKER_INITIALIZED    0x0001
  +#define PROXY_WORKER_IN_SHUTDOWN    0x0010
  +#define PROXY_WORKER_DISABLED       0x0020
  +#define PROXY_WORKER_IN_ERROR       0x0040
  +
  +#define PROXY_WORKER_IS_USABLE(f)   (!((f)->status & 0x00F0))
  +
  +
   /* Worker configuration */
   struct proxy_worker {
       int             status;
  @@ -223,6 +232,8 @@
       const char      *name;
       const char      *scheme;    /* scheme to use ajp|http|https */
       const char      *hostname;  /* remote backend address */
  +    const char      *route;     /* balancing route */
  +    const char      *redirect;  /* temporary balancing redirection route */
       apr_port_t      port;
       int             min;        /* Desired minimum number of available connections */
       int             smax;       /* Soft maximum on the total number of connections */
  @@ -251,8 +262,6 @@
       double          lbstatus;   /* Current lbstatus */
       apr_size_t      transfered; /* Number of bytes transfered to remote */
       apr_size_t      readed;     /* Number of bytes readed from remote */
  -    const char      *route;
  -    const char      *redirect;
   } proxy_runtime_worker;
   
   struct proxy_balancer {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message