Remove socker timeout

This commit is contained in:
Varun Sharma 2024-01-27 21:30:22 -08:00
commit 7a9217bbcc
No known key found for this signature in database
GPG key ID: CE30C1F427CE6272
3 changed files with 5 additions and 5 deletions

4
dist/pre/index.js vendored
View file

@ -95448,9 +95448,9 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
}
return;
}
let _http = new lib.HttpClient();
const _http = new lib.HttpClient();
let statusCode;
_http.requestOptions = { socketTimeout: 3 * 1000 };
//_http.requestOptions = { socketTimeout: 3 * 1000 };
try {
const resp = yield _http.get(`${api_url}/github/${process.env["GITHUB_REPOSITORY"]}/actions/runs/${process.env["GITHUB_RUN_ID"]}/monitor`);
statusCode = resp.message.statusCode; // adding error code to check whether agent is getting installed or not.

File diff suppressed because one or more lines are too long

View file

@ -166,9 +166,9 @@ import { isArcRunner, sendAllowedEndpoints } from "./arc-runner";
return;
}
let _http = new httpm.HttpClient();
const _http = new httpm.HttpClient();
let statusCode;
_http.requestOptions = { socketTimeout: 3 * 1000 };
//_http.requestOptions = { socketTimeout: 3 * 1000 };
try {
const resp: httpm.HttpClientResponse = await _http.get(
`${api_url}/github/${process.env["GITHUB_REPOSITORY"]}/actions/runs/${process.env["GITHUB_RUN_ID"]}/monitor`