Author: rjung Date: Wed Nov 21 02:08:10 2007 New Revision: 597017 URL: http://svn.apache.org/viewvc?rev=597017&view=rev Log: Use correct number of bytes written for statistics. The message length is supposed to get written, so in most cases this was OK, but the function returns the number of bytes written actually, so is more reliable (as long as we only use positive return values).
Modified: tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c Modified: tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c?rev=597017&r1=597016&r2=597017&view=diff ============================================================================== --- tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c (original) +++ tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c Wed Nov 21 02:08:10 2007 @@ -926,7 +926,7 @@ if ((rc = jk_tcp_socket_sendfull(ae->sd, msg->buf, msg->len)) > 0) { - ae->endpoint.wr += (jk_uint64_t)msg->len; + ae->endpoint.wr += (jk_uint64_t)rc; JK_TRACE_EXIT(l); ae->last_errno = 0; return JK_TRUE; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]