httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy mod_proxy.c mod_proxy.h
Date Wed, 11 Aug 2004 22:35:19 GMT
wrowe       2004/08/11 15:35:19

  Modified:    modules/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.
  
  Submitted by: mturk
  
  Revision  Changes    Path
  1.122     +9 -0      httpd-2.0/modules/proxy/mod_proxy.c
  
  Index: mod_proxy.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/mod_proxy.c,v
  retrieving revision 1.121
  retrieving revision 1.122
  diff -u -r1.121 -r1.122
  --- mod_proxy.c	11 Aug 2004 22:33:07 -0000	1.121
  +++ mod_proxy.c	11 Aug 2004 22:35:19 -0000	1.122
  @@ -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.110     +1 -0      httpd-2.0/modules/proxy/mod_proxy.h
  
  Index: mod_proxy.h
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/mod_proxy.h,v
  retrieving revision 1.109
  retrieving revision 1.110
  diff -u -r1.109 -r1.110
  --- mod_proxy.h	11 Aug 2004 22:34:26 -0000	1.109
  +++ mod_proxy.h	11 Aug 2004 22:35:19 -0000	1.110
  @@ -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 */
   };
  
  
  

Mime
View raw message