From 2a973a0f4ea7187ed295bd4e479051fb057deb32 Mon Sep 17 00:00:00 2001 From: Dave Hadka Date: Tue, 28 Apr 2020 21:31:41 -0400 Subject: [PATCH] Add comment for SocketTimeout --- dist/restore/index.js | 3 +++ dist/save/index.js | 3 +++ src/constants.ts | 3 +++ 3 files changed, 9 insertions(+) diff --git a/dist/restore/index.js b/dist/restore/index.js index 77148ca..e175183 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -2750,6 +2750,9 @@ var Events; Events["Push"] = "push"; Events["PullRequest"] = "pull_request"; })(Events = exports.Events || (exports.Events = {})); +// Socket timeout in milliseconds during download. If no traffic is received +// over the socket during this period, the socket is destroyed and the download +// is aborted. exports.SocketTimeout = 5000; diff --git a/dist/save/index.js b/dist/save/index.js index bdc5c09..602b1cf 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -2830,6 +2830,9 @@ var Events; Events["Push"] = "push"; Events["PullRequest"] = "pull_request"; })(Events = exports.Events || (exports.Events = {})); +// Socket timeout in milliseconds during download. If no traffic is received +// over the socket during this period, the socket is destroyed and the download +// is aborted. exports.SocketTimeout = 5000; diff --git a/src/constants.ts b/src/constants.ts index a39e5e0..2e60e34 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -19,4 +19,7 @@ export enum Events { PullRequest = "pull_request" } +// Socket timeout in milliseconds during download. If no traffic is received +// over the socket during this period, the socket is destroyed and the download +// is aborted. export const SocketTimeout = 5000;