tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52055] New: ChunkedInputFilter is not recycled for servlet 3.0 asynchronous request
Date Tue, 18 Oct 2011 21:53:21 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52055

             Bug #: 52055
           Summary: ChunkedInputFilter is not recycled for servlet 3.0
                    asynchronous request
           Product: Tomcat 7
           Version: 7.0.22
          Platform: Macintosh
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: rfeng@apache.org
    Classification: Unclassified


I'm using the standard servlet 3.0 async APIs with tomcat 7.0.22. The server
side code is something like the following:

        final AsyncContext asyncContext = request.startAsync();

        ... // in a processing thread
        asyncContext.getRequest().getInputStream();
        ... read the input stream
        asyncContext.complete();

The InputStream returns 0 bytes for the HTTP post with chunking. 

After debugging, I found that the ChunkedInputFilter is reused by
org.apache.coyote.http11.AbstractInputBuffer. But it has never been recycled
(nextRequest()?) before the reuse for another request. As a result, the
endChunk flag is always true after the first request. And it always return
immediately without reading more from the buffer.

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


Mime
View raw message