tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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

             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
    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
        ... read the input stream

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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message