From c2a1317c3813b13353eb84e4255284fe99ff8e6c Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Thu, 12 Jul 2018 23:17:35 +0200 Subject: Adjust timeout --- packages/subproviders/src/subproviders/rpc_subprovider.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/subproviders') diff --git a/packages/subproviders/src/subproviders/rpc_subprovider.ts b/packages/subproviders/src/subproviders/rpc_subprovider.ts index 87c522271..0fb99f87a 100644 --- a/packages/subproviders/src/subproviders/rpc_subprovider.ts +++ b/packages/subproviders/src/subproviders/rpc_subprovider.ts @@ -34,8 +34,10 @@ export class RPCSubprovider extends Subprovider { Accept: 'application/json', 'Content-Type': 'application/json', }); - const timeoutMs = 1000; + // Since Ethereum nodes have a proclivity for accepting requests and never + // returning a response, we set this quite low (10 seconds). + const timeoutMs = 10000; let response; try { response = await fetchAsync( -- cgit v1.2.3