From 04220b6c7e20e30176b74bf6ac11d7b1bde728e2 Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Tue, 19 Jul 2022 04:06:03 -0700 Subject: [PATCH] Typo and increase timeout to 45s Summary: Observed that a few requests tend to timeout when using Flipper with flipper-server. Increasing timeout to 45s as to be a bit more flexible. 'exec' operations don't have a timeout when not using flipper-server. Reviewed By: antonk52 Differential Revision: D37955108 fbshipit-source-id: 5d8ef7f066d6b316e4b485b281a015794b5bd2de --- .../flipper-frontend-core/src/client/FlipperServerClient.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/flipper-frontend-core/src/client/FlipperServerClient.tsx b/desktop/flipper-frontend-core/src/client/FlipperServerClient.tsx index 77acae301..c5bbcf52c 100644 --- a/desktop/flipper-frontend-core/src/client/FlipperServerClient.tsx +++ b/desktop/flipper-frontend-core/src/client/FlipperServerClient.tsx @@ -16,7 +16,7 @@ import { import ReconnectingWebSocket from 'reconnecting-websocket'; const CONNECTION_TIMEOUT = 30 * 1000; -const EXEC_TIMOUT = 30 * 1000; +const EXEC_TIMEOUT = 45 * 1000; export enum FlipperServerState { CONNECTING, @@ -144,7 +144,7 @@ export function createFlipperServerWithSocket( reject( new Error(`flipper-server: timeout for command '${command}'`), ); - }, EXEC_TIMOUT), + }, EXEC_TIMEOUT), }); const execMessage = {