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

close DTLS conn upon err #171

Merged

Conversation

melekes
Copy link
Contributor

@melekes melekes commented Mar 21, 2022

It looks like we're not closing the connection upon
ErrNoSRTPProtectionProfile / ErrNoRemoteCertificate errors.
Plus we're logging the wrong error when fingerprint is bad.

@melekes
Copy link
Contributor Author

melekes commented Mar 21, 2022

Refs paritytech/smoldot#2135

@codecov
Copy link

codecov bot commented Mar 21, 2022

Codecov Report

Merging #171 (c050d65) into master (aa21255) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #171   +/-   ##
=======================================
  Coverage   57.52%   57.52%           
=======================================
  Files          66       66           
  Lines        5784     5784           
  Branches     1797     1799    +2     
=======================================
  Hits         3327     3327           
  Misses        915      915           
  Partials     1542     1542           
Impacted Files Coverage Δ
src/dtls_transport/mod.rs 100.00% <ø> (ø)

Continue to review full report at Codecov.

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

@rainliu
Copy link
Member

rainliu commented Mar 21, 2022

LGTM. could you rebase it? There are some conflicts need be resolved.

It looks like we're not closing the connection upon
ErrNoSRTPProtectionProfile / ErrNoRemoteCertificate errors.
Plus we're logging the wrong error when fingerprint is bad.
@melekes melekes force-pushed the anton/close-dtls-connection-upon-error branch from 173a230 to c050d65 Compare March 22, 2022 06:35
@rainliu rainliu merged commit 17681cb into webrtc-rs:master Mar 22, 2022
@melekes melekes deleted the anton/close-dtls-connection-upon-error branch March 22, 2022 07:44
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.

None yet

2 participants