MetaMask / MetaMask/core

[eth-json-rpc-middleware] [fetch] Add support for cancelling requests

Open
#6,873 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
413
Forks
308
Avg merge
1d 4h
Merged PRs (30d)
253

Description

Currently a request may be retried up to 5 times. It should be possible to cancel a request outright without having to exhaust the maximum number of retries.

Similarly, it should be possible to cancel a request that hangs (`fetch` doesn't have a default timeout).

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the eth-json-rpc-middleware package and its fetch retry and request-handling entry points. Determine how cancellation should be exposed and verified; done means a request can be cancelled without exhausting retries and a hanging fetch can also be cancelled.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.