-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix sending and handling keepalives #62
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #62 +/- ##
==========================================
- Coverage 82.71% 81.45% -1.26%
==========================================
Files 25 25
Lines 1527 1548 +21
==========================================
- Hits 1263 1261 -2
- Misses 264 287 +23
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
lib/ex_ice/priv/ice_agent.ex
Outdated
Logger.warning(""" | ||
Ignoring keepalive success response, non-symmetric src and dst addresses. | ||
Sent from: #{inspect({ka_local_cand.base.base_address, ka_local_cand.base.base_port})}, \ | ||
to: #{inspect({ka_remote_cand.address, ka_remote_cand.port})} | ||
Recv from: #{inspect({src_ip, src_port})}, on: #{inspect({local_cand.base.base_address, local_cand.base.base_port})} \ | ||
Not refreshing last_seen time. \ | ||
""") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this a warning log? Is it more important than e.g. the one from the error response?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will change it to debug one
pair_info
function that makes it easier to log information about pair. I will replace old logs incrementally.:keepalive
->:keepalive_timeout
andhandle_keepalive
->handle_keepalive_timeout