From 48b62c1c529d0cb84897a268c7c9a992f441b406 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 393f1c2..197c44c 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -4492,6 +4492,9 @@ var Events; Events["PullRequest"] = "pull_request"; })(Events = exports.Events || (exports.Events = {})); exports.CacheFilename = "cache.tgz"; +// 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 53ab6e0..16c38b6 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -4578,6 +4578,9 @@ var Events; Events["PullRequest"] = "pull_request"; })(Events = exports.Events || (exports.Events = {})); exports.CacheFilename = "cache.tgz"; +// 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 320b15c..a6ee7b0 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -21,4 +21,7 @@ export enum Events { export const CacheFilename = "cache.tgz"; +// 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;