https://bz.apache.org/bugzilla/show_bug.cgi?id=65979

            Bug ID: 65979
           Summary: Connection is closed when keep-alive is specified
           Product: Tomcat 9
           Version: 9.0.60
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: patrickjamesba...@gmail.com
  Target Milestone: -----

When a user sends request headers--> 

HTTP/1.1
Transfer-Encoding: chunked, 
Connection: keep-alive, 
Content-length = 12

Tomcat is ignoring content-length (which is correct), however, it is sending
back Connection: closed.  This is wrong. This is because
org.apache.coyote.http11.Http11Processor, line 856 is setting keep-alive to
false.  This is wrong. Please remove that line, or check to see if request is
requesting Connection to kept alive.  The connection is getting closed, even
when a user is requesting it to be kept alive.  

curl --location --request POST 'https://localhost:9010/test/v1/echo' \
--header 'Transfer-Encoding: chunked' \
--header 'Content-Length: 17' \
--header 'Content-Type: application/json' \
--data-raw '{"this": "fight"}' --http1.1


Response Headers sent back.
Content-Type: application/json
Transfer-Encoding: chunked
Date: Sat, 26 Mar 2022 20:06:11 GMT
Connection: close

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