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.c mod_proxy.h
Date Thu, 05 Aug 2004 17:46:59 GMT
mturk       2004/08/05 10:46:59

  Modified:    ajp/proxy mod_proxy.c mod_proxy.h
  Log:
  Added KeepAlive worker option.
  The scheme handler will override this setting if required, depending on the
  protocol itself and keepalive_set flag.
  
  Revision  Changes    Path
  1.28      +9 -0      jakarta-tomcat-connectors/ajp/proxy/mod_proxy.c
  
  Index: mod_proxy.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/proxy/mod_proxy.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- mod_proxy.c	5 Aug 2004 16:55:34 -0000	1.27
  +++ mod_proxy.c	5 Aug 2004 17:46:58 -0000	1.28
  @@ -151,6 +151,15 @@
           worker->recv_buffer_size = ival;
           worker->recv_buffer_size_set = 1;
       }
  +    else if (!strcasecmp(key, "keepalive")) {
  +        if (!strcasecmp(val, "on"))
  +            worker->keepalive = 1;
  +        else if (!strcasecmp(val, "off"))
  +            worker->keepalive = 0;
  +        else
  +            return "KeepAlive must be On|Off";
  +        worker->keepalive_set = 1;
  +    }    
       else {
           return "unknown parameter";
       }
  
  
  
  1.21      +1 -0      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.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- mod_proxy.h	5 Aug 2004 17:41:15 -0000	1.20
  +++ mod_proxy.h	5 Aug 2004 17:46:58 -0000	1.21
  @@ -236,6 +236,7 @@
       apr_size_t          io_buffer_size;
       char                io_buffer_size_set;
       char                keepalive;
  +    char                keepalive_set;
       proxy_conn_pool *cp;        /* Connection pool to use */
       void            *opaque;    /* per scheme worker data */
   };
  
  
  

---------------------------------------------------------------------
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