Skip to content

Closed mint connections are not handled. #299

@nduitz

Description

@nduitz

Environment

  • Pigeon version: main (unreleased)

Current behavior

If the FCM adapter is alive for a while lib/pigeon/fcm.ex:150 won't match since the socket closes and that is never handled properly

Expected behavior

  def handle_info({:closed, _}, %{config: config} = state) do
    case connect_socket(config) do
      {:ok, socket} ->
        Configurable.schedule_ping(config)
        {:noreply, %{state | socket: socket}}

      {:error, reason} ->
        {:stop, reason}
    end
  end

should handle closed connections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions