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

            Bug ID: 69121
           Summary: Async requests are being forwarded to the default
                    error page when the connection with the server is lost
           Product: Tomcat 9
           Version: 9.0.89
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: eduhor...@gmail.com
  Target Milestone: -----

After upgrading to Tomcat `9.0.89` I've noticed that when an async request is
terminated due to the client losing connection to the server, my application is
trying to forward the request to the application default error page, which
fails since the connection to the server is gone.

After digging a little on the changes made in this version plus some debugging,
I've found [this
commit](https://github.com/apache/tomcat/commit/31fc71858f9212fb8c1c508d3cafb852d40a6ede),
which may be the root cause.

Perhaps we should only reset the response error status for async request if the
IO is still available (I'm using [this
section](https://github.com/apache/tomcat/blob/e69545d70c4e3e7a2a16526278612d05d80cdf74/java/org/apache/catalina/core/StandardHostValve.java#L146)
as reference).

A sample implementation is available on [my fork of the
project](https://github.com/eduhoribe/tomcat/tree/9.0.x)

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