Skip to content

Commit

Permalink
Handle econnaborted error from OS kernel (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
dch authored Sep 21, 2023
1 parent a396029 commit 0739466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thousand_island/acceptor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defmodule ThousandIsland.Acceptor do
{:error, :too_many_connections} ->
ThousandIsland.Telemetry.span_event(span, :spawn_error)

{:error, reason} when reason in [:closed, :einval] ->
{:error, reason} when reason in [:closed, :einval, :econnaborted] ->
ThousandIsland.Telemetry.stop_span(span, %{connections: count})

{:error, reason} ->
Expand Down

0 comments on commit 0739466

Please sign in to comment.