Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: remove client-side timeout from http rpc calls #3178

Merged
merged 3 commits into from
Sep 1, 2021

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Jul 17, 2020

Do not set up a client-side timeout, instead rely on the server-side version.

The global timeout is still respected, users can use an AbortSignal to do timeouts on a per-call basis if desired.

fixes: #3161

vasco-santos
vasco-santos previously approved these changes Jul 17, 2020
@jacobheun jacobheun added the status/in-progress In progress label Jul 30, 2020
@achingbrain achingbrain changed the title fix: remove default timeout from http rpc calls fix: remove client-side timeout from http rpc calls Aug 27, 2021
Do not set up a client-side timeout, instead rely on the server-side version.

The global timeout is still respected, users can use an AbortSignal to do
timeouts on a per-call basis if desired.

fixes: #3161
@achingbrain achingbrain force-pushed the fix/remove-default-rpc-timeout branch from d2dfdd9 to 71c231c Compare August 27, 2021 09:46
Brings API in line with go-IPFS - timeouts are recorded in the `.err`
prop of the output instead of the whole API call throwing a `TimeoutError`
@achingbrain achingbrain merged commit f11220e into master Sep 1, 2021
@achingbrain achingbrain deleted the fix/remove-default-rpc-timeout branch September 1, 2021 06:15
SgtPooki referenced this pull request in ipfs/js-kubo-rpc-client Aug 18, 2022
Do not set up a client-side timeout, instead rely on the server-side version.

The global timeout is still respected, users can use an AbortSignal to do
timeouts on a per-call basis if desired.

Also brings refs API in line with go-IPFS - timeouts are recorded in the `.err`
prop of the output instead of the whole API call throwing a `TimeoutError`

fixes: #3161
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

interface-ipfs-core: timeout tests pass without implementation
3 participants