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

Fix deadlock in DataChannel with mutex unlock #3009

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

pabloFuente
Copy link
Contributor

@pabloFuente pabloFuente commented Jan 16, 2025

This fixes a regression bug introduced in commit 835ac3b, where this line was removed: 835ac3b#diff-b8da7f3e746d55a2fe2a4295ae5fe5cf76b9512d7665201285143e25ab3bd3b9L423.

Related issue #3005

@JoeTurki
Copy link
Member

@pabloFuente

Good catch! make sure to close the peer connections in your test so it passes!

Thanks.

datachannel_go_test.go Outdated Show resolved Hide resolved
datachannel_go_test.go Show resolved Hide resolved
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.08%. Comparing base (49b555b) to head (fe41afd).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3009      +/-   ##
==========================================
+ Coverage   77.96%   78.08%   +0.11%     
==========================================
  Files          89       89              
  Lines       10578    10580       +2     
==========================================
+ Hits         8247     8261      +14     
+ Misses       1840     1832       -8     
+ Partials      491      487       -4     
Flag Coverage Δ
go 79.66% <100.00%> (+0.12%) ⬆️
wasm 63.68% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

datachannel_go_test.go Outdated Show resolved Hide resolved
Copy link
Member

@JoeTurki JoeTurki left a comment

Choose a reason for hiding this comment

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

Looks good to me, squash your commits into a single one and we can merge this right now :)

Thanks!

Fulfill request changes in PR 3009

Close answer and assert errors in detach tests
@JoeTurki JoeTurki merged commit fe41afd into pion:master Jan 16, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants