finch
finch copied to clipboard
NimblePool.checkout :idle_timeout When setting `pool_max_idle_time`
Hello
We added a pool_max_idle_time to pool configuration.
We then started to have the following issue:
Elixir.ErlangError Erlang error: "** (Oban.CrashError) ** (exit) exited in: NimblePool.checkout(#PID<0.26263.0>)\n ** (EXIT) shutdown: :idle_timeout"
lib/finch/http1/pool.ex:96 Finch.HTTP1.Pool.request/6
lib/finch.ex:493 anonymous fn/4 in Finch.request/3
/app/deps/telemetry/src/telemetry.erl:324 :telemetry.span/3
lib/req/finch.ex:239 Req.Finch.run_finch_request/3
lib/req/finch.ex:71 Req.Finch.run/4
lib/req/request.ex:1103 Req.Request.run_request/1
lib/req/request.ex:1047 Req.Request.run/1
connection max idle time is 10_000 pool max idle time is 20_000
If we let it empty (:infinity). We have no issue.
Thanks. Mathieu