You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.
Hello, I noticed that
checks.HTTPChecker
sends a request, but it does not close the response bodyhttps://github.com/docker/go-healthcheck/blob/a4f20681d8a1929b947920b5dfe2d16809d815ca/checks/checks.go#L41-L48
It should be closed or it will lead to a file descriptions leak, so I guess that it is a bug
P.S. Client in
checks.HTTPChecker
https://github.com/docker/go-healthcheck/blob/a4f20681d8a1929b947920b5dfe2d16809d815ca/checks/checks.go#L29-L31
could be reused, if it was declared before this line https://github.com/docker/go-healthcheck/blob/a4f20681d8a1929b947920b5dfe2d16809d815ca/checks/checks.go#L28
The text was updated successfully, but these errors were encountered: