Skip to content

Commit

Permalink
fix: It should retry finch pool timeouts (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
YgorCastor committed Jan 8, 2024
1 parent c0f7ac7 commit e26811a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/connection/executor/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ defmodule Ravix.Connection.RequestExecutor.Client do
put_in(response.body, decode_response(response.body))
|> check_stale(node)

{:error, %Finch.Error{reason: :disconnected}} ->
Telemetry.request_error(node, :http2_pool_disconnected)
{:error, :pool_disconnected}

{:error, response} ->
{:fatal, response}
end
Expand Down

0 comments on commit e26811a

Please sign in to comment.