Revert "Remove socker timeout"

This reverts commit 7a9217bbcc.
This commit is contained in:
Varun Sharma
2024-01-27 21:47:08 -08:00
parent 384396e21a
commit fd4a942a7b
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -95448,9 +95448,9 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
}
return;
}
const _http = new lib.HttpClient();
let _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.
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -166,9 +166,9 @@ import { isArcRunner, sendAllowedEndpoints } from "./arc-runner";
return;
}
const _http = new httpm.HttpClient();
let _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`