Repository navigation
fix(webui): cap sendRequest retries and stop them on abort - #2360
Merged
Merged
Conversation
A function retryOn replaces fetch-retry's retries cap, and ours never checked attempt, so a persistent network error or 5xx was retried forever. It also kept retrying aborted requests. Cap fetch-retry and 429 waits at 10 each, stop retrying once the signal aborts, and settle a 429 wait as soon as the request is aborted. The 429 cap also applies to sendNonRetriableRequest and sendStrictRequest. Signed-off-by: Trivikram Kamat <[email protected]>
gnugomez
approved these changes
Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
sendRequestnever stopped retrying, and aborting a request didn't stop it:retryOnreplaces theretriescap. Ours never checkedattempt, so a persistent network error or 5xx was retried forever with2^ns delays.retryOnreturned true forAbortError, so a cancelled request kept retrying.sendRequestagain with no cap and didn't watch the abort signal while it waited. This affectedsendNonRetriableRequest/sendStrictRequestcallers too, publish included.