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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c871b221fd
commit
04220b6c7e
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user