Skip to content

Commit b2822d2

Browse files
committed
add back timeout
1 parent c33ec6c commit b2822d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@aws-cdk/toolkit-lib/lib/util/network-detector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class NetworkDetector {
4646
}
4747
}
4848

49-
// private static readonly TIMEOUT_MS = 500;
49+
private static readonly TIMEOUT_MS = 500;
5050
private static readonly URL = 'https://cli.cdk.dev-tools.aws.dev/notices.json';
5151

5252
private static async load(): Promise<CachedConnectivity> {
@@ -77,7 +77,7 @@ export class NetworkDetector {
7777
const options: RequestOptions = {
7878
// method: 'HEAD',
7979
agent: agent,
80-
// timeout: this.TIMEOUT_MS,
80+
timeout: this.TIMEOUT_MS,
8181
};
8282

8383
return new Promise((resolve) => {

0 commit comments

Comments
 (0)