Skip to content

caddytls: Zero out throttle window first#5443

Merged
mholt merged 2 commits intomasterfrom
fix-5442
Mar 20, 2023
Merged

caddytls: Zero out throttle window first#5443
mholt merged 2 commits intomasterfrom
fix-5442

Conversation

@mholt
Copy link
Member

@mholt mholt commented Mar 17, 2023

Otherwise it's a panic when setting the MaxEvents to 0 while the window is still non-zero. Should fix #5442

@francislavoie francislavoie added the bug 🐞 Something isn't working label Mar 19, 2023
@francislavoie francislavoie added this to the v2.7.0 milestone Mar 19, 2023
Copy link
Member

@francislavoie francislavoie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

I added another commit to fix a regression from b97c76f which was mentioned in the issue this PR is meant to solve.

@excid3
Copy link

excid3 commented Mar 20, 2023

I compiled 671061d and that seems to fix it. 👍

@mholt mholt merged commit 0cc49c0 into master Mar 20, 2023
@mholt mholt deleted the fix-5442 branch March 20, 2023 18:06
@mholt
Copy link
Member Author

mholt commented Mar 20, 2023

Great! Thank you for taking the time to confirm 😊

@mholt
Copy link
Member Author

mholt commented Mar 20, 2023

And thank you Francis for your patch as well 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🐞 Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Removing on_demand rate_limit causes a configuration error

3 participants