You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/04/08 10:37:56 UTC

DO NOT REPLY [Bug 46991] New: "Bytes received " problem

https://issues.apache.org/bugzilla/show_bug.cgi?id=46991

           Summary: "Bytes received "  problem
           Product: Tomcat 6
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Manager application
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: huangfeng@tongtech.com


use jk module

submit some data with post method ,but  "Bytes received" always show zero

see source file ,JkCoyoteHandler.java ,in "inovke" method

 public int invoke( Msg msg, MsgContext ep )
        throws IOException {
        if( ep.isLogTimeEnabled() )
            ep.setLong( MsgContext.TIMER_PRE_REQUEST,
System.currentTimeMillis());

        Request req=ep.getRequest();
        Response res=req.getResponse();

        if( log.isDebugEnabled() )
            log.debug( "Invoke " + req + " " + res + " " +
req.requestURI().toString());

        res.setNote( epNote, ep );
        ep.setStatus( MsgContext.JK_STATUS_HEAD );
        RequestInfo rp = req.getRequestProcessor();
        rp.setStage(Constants.STAGE_SERVICE);
        try {
            adapter.service( req, res );
        } catch( Exception ex ) {
            log.info("Error servicing request " + req,ex);
        }
        if(ep.getStatus() != MsgContext.JK_STATUS_CLOSED) {
            res.finish();
        }

        req.recycle();         
        req.updateCounters();   //see this line
         res.recycle();
        ep.recycle();
        if( ep.getStatus() == MsgContext.JK_STATUS_ERROR ) {
            return ERROR;
        }
        ep.setStatus( MsgContext.JK_STATUS_NEW );
        rp.setStage(Constants.STAGE_KEEPALIVE);
        return OK;
    }

 the request object recycled,the "byteRead" property must be set to zero ,but
at the next line ,begin to "updateCounters",this may be a bug

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 46991] "Bytes received " problem

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46991





--- Comment #2 from huangfeng <hu...@tongtech.com>  2009-04-08 19:10:15 PST ---
(In reply to comment #1)
> Thanks for the report. This has been fixed in trunk and proposed for 6.0.x

which version ? I use version 6.0.18,how can I get the fixed version?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 46991] "Bytes received " problem

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46991





--- Comment #1 from Mark Thomas <ma...@apache.org>  2009-04-08 09:31:45 PST ---
Thanks for the report. This has been fixed in trunk and proposed for 6.0.x

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 46991] "Bytes received " problem

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46991





--- Comment #3 from Mark Thomas <ma...@apache.org>  2009-04-09 01:51:44 PST ---
It will probably be in 6.0.20 but that depends on a) it getting the 3 +1 votes
to be back-ported and b) there being a 6.0.20 release. Given that 6.0.19 is
still in progress 6.0.20 is likely to be some time away.

Alternatively, you can build Tomcat from source with the patch. If you want to
do that, the users list is the place to get help.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 46991] "Bytes received " problem

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46991





--- Comment #4 from huangfeng <hu...@tongtech.com>  2009-04-09 02:11:27 PST ---
Thanks !

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 46991] "Bytes received " problem

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46991


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #5 from Mark Thomas <ma...@apache.org>  2009-04-28 06:23:35 PST ---
This has been fixed in 6.0.x and will be in 6.0.20 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org