Skip to content

fix(webui): cap sendRequest retries and stop them on abort - #2360

Merged
gnugomez merged 1 commit into
eclipse-openvsx:mainfrom
trivikr:webui-retry-cap
Oct 22, 2026
Merged

gnugomez merged 1 commit into
eclipse-openvsx:mainfrom
trivikr:webui-retry-cap

Conversation

@trivikr

@trivikr trivikr commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

sendRequest never stopped retrying, and aborting a request didn't stop it:

  • In fetch-retry 5.0.6, a function retryOn replaces the retries cap. Ours never checked attempt, so a persistent network error or 5xx was retried forever with 2^n s delays.
  • retryOn returned true for AbortError, so a cancelled request kept retrying.
  • The 429 branch called sendRequest again with no cap and didn't watch the abort signal while it waited. This affected sendNonRetriableRequest / sendStrictRequest callers too, publish included.

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
gnugomez merged commit 8b03955 into eclipse-openvsx:main Oct 22, 2026
5 checks passed
@trivikr
trivikr deleted the webui-retry-cap branch October 22, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants