Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Should throttle policy settings be merged with default config? #149

Open
ProNotion opened this issue Aug 16, 2021 · 0 comments
Open

Should throttle policy settings be merged with default config? #149

ProNotion opened this issue Aug 16, 2021 · 0 comments

Comments

@ProNotion
Copy link

I have the following in my web.config

<throttlePolicy limitPerSecond="2"
                  limitPerMinute="6"
                  limitPerHour="18"
                  limitPerDay="36"
                  limitPerWeek="100"
                  ipThrottling="true"
                  clientThrottling="true"
                  endpointThrottling="true" />

On one particular API controller action I have the following attribute:

[EnableThrottling(PerSecond = 2, PerMinute = 3)]

After 3 attempts to hit the endpoint within 3 minutes the throttle is applied but not just for the current user but for everyone. Does the attribute need to explicitly apply the ipThrottling boolean or should it inherit the config from the web.config and simply override the attributes set on the controller action?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant