appcues / mojito

An easy-to-use Elixir HTTP client, built on the low-level Mint library.
https://hexdocs.pm/mojito/Mojito.html
MIT License
349 stars 34 forks source link

Fix pool: false leaking connections #83

Closed bmteller closed 3 years ago

bmteller commented 3 years ago

Ensure Mint.HTTP.close is called

Fix for: https://github.com/appcues/mojito/issues/82

Not sure if this is the best way of testing it. You can comment out Conn.close and see the test fail to see the original issue.