Open spencerdcarlson opened 4 years ago
I am also facing this issue. It is intermittent and can be noticed in logs , every hour. Its count is ~3 % of the total request.
Hello, we're seeing the same problem. The problem goes away if we disable connection pooling. I should also add that we're using Hackney 1.17.4.
Same issue with hackney v1.18.0 on Erlang 24.2.1: connections are periodically closed. Setting pool: false
seems to fix the issue.
It is expected that the server close sometimes the connextion. When do you get this error? Is this in the misdle of a request , atthe beginning or at the end ?
I am triggering periodic API calls via a GenServer
that uses Process.send_after
to hit an API endpoint every 60 seconds. The failures always seem to happen in minute 3 (on the third request), and the {:error, :closed}
seems to happen right as the connection is attempted.
I also have these errors. sometimes we get {closed,timeout} we also use pool and it starts reproducing when we start using httpS for our tests but when we used http it doesn't reproduce
it happens right as the connection is attempted.
which implications does the disabled connection pool has? is there any place to read how the connection pool works?
I'm not sure if this is the best place to post this. My issues looks like it is similar to 439 but it might just be related to how I am using hackney.
We are making about 4.19K requests per min and seeing a
{:error, :closed}
response about once every 30 min.Here is my basic configuration
The majority of the requests are returning successfully, but once every 30 min I am seeing
{:error, :closed}