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

Mojito possibly leaking {:tcp_closed, port} #47

Closed dowusu closed 4 years ago

dowusu commented 4 years ago

I ran into a strange error today whiles working with Mojito. I've a GenServer that invokes an http endpoint via Mojito. Initially it was crashing with undefined function clause for handle_info, after adding a general function clause, {:tcp_closed, port} was being sent to the GenServer. It's quite surprising since I've Mojito in production with no such message. I've hackney in my codebase as well but the GenServer generating this message uses only Mojito. Could it be that Mojito is sending the above message to the GenServer.