We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e76e73a commit 1d46935Copy full SHA for 1d46935
internal/requestconfig/requestconfig.go
@@ -461,6 +461,11 @@ func (cfg *RequestConfig) Execute() (err error) {
461
break
462
}
463
464
+ // Close the response body before retrying to prevent connection leaks
465
+ if res != nil && res.Body != nil {
466
+ res.Body.Close()
467
+ }
468
+
469
time.Sleep(retryDelay(res, retryCount))
470
471
0 commit comments