Skip to content

[FCE-3217] Fix unhandled ExTURN expiry messages#102

Merged
sgfn merged 1 commit into
masterfrom
fix/expired-case-clause
May 15, 2026
Merged

[FCE-3217] Fix unhandled ExTURN expiry messages#102
sgfn merged 1 commit into
masterfrom
fix/expired-case-clause

Conversation

@sgfn
Copy link
Copy Markdown
Member

@sgfn sgfn commented May 7, 2026

resolves #99

@sgfn sgfn requested a review from roznawsk May 7, 2026 10:33
@linear
Copy link
Copy Markdown

linear Bot commented May 7, 2026

@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.17%. Comparing base (7723c04) to head (67da13e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #102      +/-   ##
==========================================
+ Coverage   87.15%   87.17%   +0.02%     
==========================================
  Files          27       27              
  Lines        2078     2082       +4     
==========================================
+ Hits         1811     1815       +4     
  Misses        267      267              
Files with missing lines Coverage Δ
lib/ex_ice/priv/ice_agent.ex 88.97% <100.00%> (+0.12%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7723c04...67da13e. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

end

@spec handle_ex_turn_msg(t(), reference(), ExTURN.Client.notification_message()) :: t()
@spec handle_ex_turn_msg(t(), reference(), term()) :: t()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion
The ExTurn.Client exports this type:

  @typedoc """
  Messages that can be passed to `handle_message/2`.
  """
  @type message() ::
          {:socket_data, :inet.ip_address(), :inet.port_number(), binary()}
          | internal_notification_message()

which is used by the handle_message function:
@spec handle_message(t(), message()) :: on_handle_message()

we could use this type instead.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw you can bump the ex_turn to 0.2.1

@sgfn sgfn merged commit d230a73 into master May 15, 2026
4 checks passed
@sgfn sgfn deleted the fix/expired-case-clause branch May 15, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CaseClauseError: {:permission_expired, ip, client} unhandled in handle_ex_turn_msg/3

2 participants