Skip to content
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

Move DTLS utilities to DTLSTransport module #10

Merged
merged 4 commits into from
Nov 6, 2023
Merged

Move DTLS utilities to DTLSTransport module #10

merged 4 commits into from
Nov 6, 2023

Conversation

LVala
Copy link
Member

@LVala LVala commented Nov 3, 2023

Additionally, fixes some bugs with active mode.

@LVala LVala self-assigned this Nov 3, 2023
@LVala LVala marked this pull request as ready for review November 3, 2023 11:15
@LVala LVala requested a review from mickel8 November 3, 2023 11:15
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

Attention: 33 lines in your changes are missing coverage. Please review.

Files Coverage Δ
lib/ex_webrtc/peer_connection.ex 74.40% <61.90%> (+5.12%) ⬆️
lib/ex_webrtc/dtls_transport.ex 35.89% <35.89%> (ø)

📢 Thoughts on this report? Let us know!.

:fingerprint,
:mode,
finished: false,
should_start: false
Copy link
Member

Choose a reason for hiding this comment

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

I would favor using mode field instead, which currerntly remains unset

dtls =
if dtls.buffered_packets do
Logger.debug("Sending buffered DTLS packets")
ICEAgent.send_data(dtls.ice_agent, dtls.buffered_packets)
Copy link
Member

Choose a reason for hiding this comment

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

I assume this was coppied but could we always match against :ok?

@LVala LVala merged commit 1aeef5b into master Nov 6, 2023
2 of 4 checks passed
@LVala LVala deleted the refactor-dtls branch November 6, 2023 09:01
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.

2 participants