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

            Bug ID: 60997
           Summary: Enhance SemaphoreValve to support denied status and
                    path matching
           Product: Tomcat 9
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: rmannibu...@gmail.com
  Target Milestone: -----

Hi,

would be great to enrich the SemaphoreValve to support few more things. Obvious
and easy ones are:

1. deniedStatus and have a default implementation of permitDenied setting this
status (Note: if not possible in current valve a EnhancedSemaphoreValve would
be good enough)
2. controlConcurrency should enable to match a requestUri, I guess a
includeRequestUris and excludeRequestUris is the way to go

On probably a bit more difficult side, it would be great to support
asynchronism limiting. This one can require to move the valve to a filter to be
able to wrap the AsyncContext to have the right hooks but this would make it
fully functional.

Finally: this valve provides concurrent limit but is there any plan to have
rate limiting (based on a time slot)?

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