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 proxy_ajp.c
Date Wed, 11 Aug 2004 20:44:09 GMT
wrowe       2004/08/11 13:44:09

  Modified:    modules/proxy proxy_ajp.c
  Log:
  Use protocol handler defines instead fixed numbers.
  Makes more sense what's happening.
  
  Submitted by: mturk
  
  Revision  Changes    Path
  1.5       +5 -5      httpd-2.0/modules/proxy/proxy_ajp.c
  
  Index: proxy_ajp.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_ajp.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- proxy_ajp.c	11 Aug 2004 20:43:05 -0000	1.4
  +++ proxy_ajp.c	11 Aug 2004 20:44:08 -0000	1.5
  @@ -422,8 +422,8 @@
       }
   
       /* parse the reponse */
  -    result = ajp_parse_type(r,p_conn->data);
  -    if (result == 4) {
  +    result = ajp_parse_type(r, p_conn->data);
  +    if (result == CMD_AJP13_SEND_HEADERS) {
           ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
                        "proxy: got response from %pI (%s)",
                        p_conn->addr, p_conn->name);
  @@ -464,14 +464,14 @@
       
       type = ajp_parse_type(r, p_conn->data);
       status = APR_SUCCESS;
  -    while (type != 5) {
  -        if (type == 4) {
  +    while (type != CMD_AJP13_END_RESPONSE) {
  +        if (type == CMD_AJP13_SEND_HEADERS) {
               /* AJP13_SEND_HEADERS: process them */
               status = ajp_parse_headers(r, p_conn->data); 
               if (status != APR_SUCCESS) {
                   break;
               }
  -        } else if  (type == 3) {
  +        } else if  (type == CMD_AJP13_SEND_BODY_CHUNK) {
               /* AJP13_SEND_BODY_CHUNK: piece of data */
               apr_uint16_t size;
               char *buff;
  
  
  

Mime
View raw message