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 d156eec commit 8dfed35Copy full SHA for 8dfed35
internal/requestconfig/requestconfig.go
@@ -465,6 +465,11 @@ func (cfg *RequestConfig) Execute() (err error) {
465
break
466
}
467
468
+ // Close the response body before retrying to prevent connection leaks
469
+ if res != nil && res.Body != nil {
470
+ res.Body.Close()
471
+ }
472
+
473
time.Sleep(retryDelay(res, retryCount))
474
475
0 commit comments