Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: http connection leak in NewBearer()
The `response.Body` for the first `http.Get()` call in `NewBearer()` is not closed. This leaks connections to the `registry` server and can result in substantial memory usage in the `registry`, as the registry allocates a 4MB buffer for each connection and neither end enforces an idle timeout. Fixes #378
- Loading branch information