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

            Bug ID: 56190
           Summary: Connection keep-alive not working with asynchronous
                    servlet
           Product: Tomcat 8
           Version: 8.0.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Specification APIs
          Assignee: dev@tomcat.apache.org
          Reporter: f...@apache.org

Created attachment 31346
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31346&action=edit
AsyncHelloServlet.java

I am trying to use asynchronous servlets. It looks like whenever you call
request.startAsync() keep-alive is disabled and the response is sent in chunked
transfer encoding.

I attached the code of a simple servlet. I get these headers in the response:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Date: Wed, 26 Feb 2014 13:25:29 GMT

With a regular blocking servlet I get:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 11
Date: Wed, 26 Feb 2014 13:49:17 GMT

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to