Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ratelimits: Auto pause zombie clients #7763
ratelimits: Auto pause zombie clients #7763
Changes from 32 commits
d122f18
e966a9a
d6fed53
fb3a966
bdc2a13
5bd14ab
2a02e4d
03c3e71
73712f0
d860f88
542b7c5
7857899
35a6f63
6c4e2fe
97aebfc
061f498
a5ce802
8a28d9c
a207b74
f983373
49b959f
37fb882
794a9bf
9a59484
bfbc51a
5ccd589
4bce078
12bf5e5
85f21e8
a79d881
cc01553
fb547cd
30ea374
2e65dc3
4c7be8c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize this is a copy of some existing code, but I think both line 1833 and this line should instead return an error. I know this function tries to avoid returning errors to the caller, but a failure to build the rate limit transaction represents some sort of internal logic error, and that should become a 500 (which helps ensure it shows up in our metrics, and gets logged in the WFE with some useful context).
Also, now that there are two places within this function where we look for and discard
Canceled
/DeadlineExceeded
errors, it makes more sense to return those to the caller as well, and have the caller look forCanceled
/DeadlineExceeded
(so we won't have to duplicate logic as much).