mturk 2005/05/15 06:40:02
Modified: jk/native/common jk_ajp_common.c
Log:
Use info level for cping/cpong messages. Also select might return 0
meaning that the socket has been closed in the middle of select operation,
so do not log that as error.
Revision Changes Path
1.113 +3 -3
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.112
retrieving revision 1.113
diff -u -r1.112 -r1.113
--- jk_ajp_common.c 15 May 2005 12:07:27 -0000 1.112
+++ jk_ajp_common.c 15 May 2005 13:40:02 -0000 1.113
@@ -780,7 +780,7 @@
rc = select(ae->sd + 1, &rset, NULL, &eset, &tv);
- if ((rc < 1) || (FD_ISSET(ae->sd, &eset))) {
+ if ((rc < 0) || (FD_ISSET(ae->sd, &eset))) {
jk_log(l, JK_LOG_ERROR,
"error during select [%d]", rc);
return JK_FALSE;
@@ -806,7 +806,7 @@
/* Send CPing query */
if (ajp_connection_tcp_send_message(ae, msg, l) != JK_TRUE) {
- jk_log(l, JK_LOG_ERROR,
+ jk_log(l, JK_LOG_INFO,
"can't send cping query");
JK_TRACE_EXIT(l);
return JK_FALSE;
@@ -823,7 +823,7 @@
/* Read and check for Pong reply
*/
if (ajp_connection_tcp_get_message(ae, msg, l) != JK_TRUE) {
- jk_log(l, JK_LOG_ERROR,
+ jk_log(l, JK_LOG_INFO,
"awaited reply cpong, not received");
JK_TRACE_EXIT(l);
return JK_FALSE;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]