Skip to content

Commit 37d49f7

Browse files
feat(compute/metadata): add http timeout to metadata client (#6499)
Fixes #6498
1 parent b30d89d commit 37d49f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compute/metadata/metadata.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ func newDefaultHTTPClient() *http.Client {
7171
KeepAlive: 30 * time.Second,
7272
}).Dial,
7373
},
74+
Timeout: 5 * time.Second,
7475
}
7576
}
7677

0 commit comments

Comments
 (0)