tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hgo...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native/common jk_ajp_common.c
Date Mon, 01 Mar 2004 13:47:23 GMT
hgomez      2004/03/01 05:47:23

  Modified:    jk/native/common jk_ajp_common.c
  Log:
  More debug/trace infos on remote tomcats
  
  Revision  Changes    Path
  1.55      +13 -11    jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c
  
  Index: jk_ajp_common.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- jk_ajp_common.c	1 Mar 2004 13:37:38 -0000	1.54
  +++ jk_ajp_common.c	1 Mar 2004 13:47:23 -0000	1.55
  @@ -795,12 +795,13 @@
               if (header == AJP14_SW_HEADER) {
                   jk_log(l, JK_LOG_ERROR,
                          "ajp_connection_tcp_get_message: "
  -                       "Error - received AJP14 reply on an AJP13 connection\n");
  +                       "Error - received AJP14 reply on an AJP13 connection from %s\n",
  +                       jk_dump_hinfo(&ae->worker->worker_inet_addr, buf));
               } else {
                   jk_log(l, JK_LOG_ERROR,
                          "ajp_connection_tcp_get_message: "
  -                       "Error - Wrong message format 0x%04x\n",
  -                       header);
  +                       "Error - Wrong message format 0x%04x from %s\n",
  +                       jk_dump_hinfo(&ae->worker->worker_inet_addr, buf, header);
               }
               return JK_FALSE;
           }
  @@ -811,12 +812,13 @@
               if (header == AJP13_SW_HEADER) {
                   jk_log(l, JK_LOG_ERROR,
                          "ajp_connection_tcp_get_message: "
  -                       "Error - received AJP13 reply on an AJP14 connection\n");
  +                       "Error - received AJP13 reply on an AJP14 connection from %s\n",
  +                       jk_dump_hinfo(&ae->worker->worker_inet_addr, buf));
               } else {
                   jk_log(l, JK_LOG_ERROR,
                          "ajp_connection_tcp_get_message: "
  -                       "Error - Wrong message format 0x%04x\n",
  -                       header);
  +                       "Error - Wrong message format 0x%04x from %s\n",
  +                       jk_dump_hinfo(&ae->worker->worker_inet_addr, buf), header);
               }
               return JK_FALSE;
           }
  @@ -828,8 +830,8 @@
       if(msglen > jk_b_get_size(msg)) {
           jk_log(l, JK_LOG_ERROR,
                  "ajp_connection_tcp_get_message: "
  -               "Error - Wrong message size %d %d\n",
  -               msglen, jk_b_get_size(msg));
  +               "Error - Wrong message size %d %d from %s\n",
  +               msglen, jk_b_get_size(msg), jk_dump_hinfo(&ae->worker->worker_inet_addr,
buf));
           return JK_FALSE;
       }
   
  @@ -840,8 +842,8 @@
       if(rc < 0) {
           jk_log(l, JK_LOG_ERROR,
                  "ERROR: can't receive the response message from tomcat, "
  -               "network problems or tomcat is down %d\n",
  -               rc);
  +               "network problems or tomcat (%s) is down %d\n",
  +               jk_dump_hinfo(&ae->worker->worker_inet_addr, buf), rc);
           return JK_FALSE;
       }
   
  
  
  

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