Skip to content

Commit

Permalink
feat(compute/metadata): add http timeout to metadata client (#6499)
Browse files Browse the repository at this point in the history
Fixes #6498
  • Loading branch information
therealmitchconnors committed Aug 11, 2022
1 parent b30d89d commit 37d49f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compute/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func newDefaultHTTPClient() *http.Client {
KeepAlive: 30 * time.Second,
}).Dial,
},
Timeout: 5 * time.Second,
}
}

Expand Down

0 comments on commit 37d49f7

Please sign in to comment.