Skip to content

Commit 4238607

Browse files
authored
fix(ci): increase timeout processing RH OVAL data (#1820) (#1871)
1 parent 203db33 commit 4238607

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/rhelv2/fetcher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func fetch(uri string) (string, io.ReadCloser, error) {
3535

3636
// doFetch performs the actual fetching.
3737
func doFetch(uri string) (string, io.ReadCloser, error) {
38-
// No context needed as the client has a 20 second timeout.
38+
// No context needed as the client has a timeout.
3939
req, err := http.NewRequest(http.MethodGet, uri, nil)
4040
if err != nil {
4141
return "", nil, err

pkg/rhelv2/rhelv2.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var (
3535
u *url.URL
3636

3737
client = &http.Client{
38-
Timeout: 20 * time.Second,
38+
Timeout: 60 * time.Second,
3939
Transport: proxy.RoundTripper(),
4040
}
4141

@@ -77,7 +77,7 @@ func UpdateV2(outputDir string) (int, error) {
7777
cpes.AddAll(v.CPEs...)
7878
}
7979

80-
// No context needed as the client has a 20 second timeout.
80+
// No context needed as the client has a timeout.
8181
req, err := http.NewRequest(http.MethodGet, u.String(), nil)
8282
if err != nil {
8383
return 0, err

0 commit comments

Comments
 (0)