Skip to content

Commit 0227f92

Browse files
authored
🐛 OCPBUGS-92037: increase catalog HTTP client timeout from 10s to 5m (#2787)
The 10-second timeout was too aggressive for large catalog responses. Increase it to 5 minutes to avoid timeouts when fetching catalogs. See https://redhat.atlassian.net/browse/OCPBUGS-92037 for details of the bug.
1 parent 00db91d commit 0227f92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • internal/operator-controller/catalogmetadata/client

internal/operator-controller/catalogmetadata/client/httputil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
func BuildHTTPClient(cpw *httputil.CertPoolWatcher) (*http.Client, error) {
14-
httpClient := &http.Client{Timeout: 10 * time.Second}
14+
httpClient := &http.Client{Timeout: 5 * time.Minute}
1515

1616
pool, _, err := cpw.Get()
1717
if err != nil {

0 commit comments

Comments
 (0)