DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14281>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14281

AccessLogValve doesn't export BytesSent info from servlets...





------- Additional Comments From [EMAIL PROTECTED]  2002-11-10 02:08 -------
I've found the root cause of the error (I think) at coyote classes.

org.apache.coyote.tomcat4.CoyoteResponse calls to 
   org.apache.coyote.tomcat4.OutputBuffer.getBytesWritten()

It returna byte-count, and the 
   org.apache.coyote.tomcat4.OutputBuffer.getCharsWritten()
returns chars-count.

I've created a new method:
   org.apache.coyote.tomcat4.OutputBuffer.getContentWritten()
that returns charsWritten + bytesWritten

And in org.apache.coyote.tomcat4.CoyoteResponse,
I've changed the getContentCount() method to call the
new OutputBuffer's method.


I've recompiled the connector and all seems to work fine.

Please, analyze it.

Ciao.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@;jakarta.apache.org>

Reply via email to