mturk       2004/08/01 08:05:01

  Modified:    ajp/proxy proxy_ajp.c
  Log:
  Use protocol handler defines instead fixed numbers.
  Makes more sense what's happening.
  
  Revision  Changes    Path
  1.5       +5 -5      jakarta-tomcat-connectors/ajp/proxy/proxy_ajp.c
  
  Index: proxy_ajp.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/proxy/proxy_ajp.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- proxy_ajp.c       1 Aug 2004 14:06:24 -0000       1.4
  +++ proxy_ajp.c       1 Aug 2004 15:05:01 -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;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to