Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Commit d17a6a8

Browse files
committed
SIGN-8057 Set keep alive agent
1 parent 0d97f57 commit d17a6a8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • actions/submit-signing-request

actions/submit-signing-request/task.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { taskVersion } from './version';
1111
import { HelperArtifactDownload } from './helper-artifact-download';
1212
import { Config } from './config';
1313
import { SigningRequestStatusDto } from './dtos/signing-request-status';
14+
import { Agent } from 'https';
1415

1516
// output variables
1617
// signingRequestId - the id of the newly created signing request
@@ -222,6 +223,9 @@ export class Task {
222223

223224
// set user agent
224225
axios.defaults.headers.common['User-Agent'] = this.userAgent;
226+
axios.defaults.httpsAgent = new Agent({
227+
keepAlive: true
228+
})
225229

226230
// set token for all outgoing requests
227231
axios.defaults.headers.common.Authorization = `Bearer ${this.helperInputOutput.signPathApiToken}`

0 commit comments

Comments
 (0)