httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@locus.apache.org
Subject cvs commit: apache-1.3/src/modules/proxy proxy_http.c
Date Fri, 10 Nov 2000 10:13:20 GMT
martin      00/11/10 02:13:19

  Modified:    src/modules/proxy proxy_http.c
  Log:
  There's no need to walk the full NoCache chain. As soon as we set
  nocache=1, we bail out.
  
  Revision  Changes    Path
  1.68      +8 -4      apache-1.3/src/modules/proxy/proxy_http.c
  
  Index: proxy_http.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/modules/proxy/proxy_http.c,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -u -r1.67 -r1.68
  --- proxy_http.c	2000/02/29 14:24:27	1.67
  +++ proxy_http.c	2000/11/10 10:13:19	1.68
  @@ -470,10 +470,14 @@
   	ap_table_set(resp_hdrs, "URI", proxy_location_reverse_map(r, datestr));
   
   /* check if NoCache directive on this host */
  -    for (i = 0; i < conf->nocaches->nelts; i++) {
  -	if ((ncent[i].name != NULL && strstr(desthost, ncent[i].name) != NULL)
  -	    || destaddr.s_addr == ncent[i].addr.s_addr || ncent[i].name[0] == '*')
  -	    nocache = 1;
  +    if (nocache == 0) {
  +        for (i = 0; i < conf->nocaches->nelts; i++) {
  +	    if ((ncent[i].name != NULL && strstr(desthost, ncent[i].name) != NULL)
  +	        || destaddr.s_addr == ncent[i].addr.s_addr || ncent[i].name[0] == '*') {
  +               nocache = 1;
  +	       break;
  +	    }
  +        }
       }
   
       i = ap_proxy_cache_update(c, resp_hdrs, !backasswards, nocache);
  
  
  

Mime
View raw message