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

sctp.Client guarantees its own streams map has OpenStreams #219

Closed
wants to merge 1 commit into from

Conversation

lenaky
Copy link

@lenaky lenaky commented Mar 31, 2022

Description

once association.readLoop goroutine runs, It can be exited by
any reason. When readLoop is done, defer calls
unregisterStream which send signal Stream's sync.Cond var.
If readLoop is done before association.OpenStream is called,
Stream.ReadSCTP's sync.Cond wait for signal infinitely
because association.streams doesn't have any stream yet.

this is for pion/webrtc#2098

Reference issue

Fixes #...

once association.readLoop goroutine runs, It can be exited by
any reason. When readLoop is done, defer calls
unregisterStream which send signal Stream's sync.Cond var.
If readLoop is done before association.OpenStream is called,
Stream.ReadSCTP's sync.Cond wait for signal infinitely
because association.streams doesn't have any stream yet.
@codecov
Copy link

codecov bot commented Apr 1, 2022

Codecov Report

Merging #219 (7230778) into master (ca5b79f) will decrease coverage by 0.11%.
The diff coverage is 25.00%.

@@            Coverage Diff             @@
##           master     #219      +/-   ##
==========================================
- Coverage   80.69%   80.58%   -0.12%     
==========================================
  Files          47       47              
  Lines        3901     3904       +3     
==========================================
- Hits         3148     3146       -2     
- Misses        616      619       +3     
- Partials      137      139       +2     
Flag Coverage Δ
go 80.58% <25.00%> (-0.12%) ⬇️
wasm 67.77% <25.00%> (-0.06%) ⬇️

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

Impacted Files Coverage Δ
association.go 84.24% <25.00%> (-0.27%) ⬇️

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 ca5b79f...7230778. Read the comment docs.

@lenaky
Copy link
Author

lenaky commented Apr 29, 2022

Unfortunately, It happens again after applying this to our system. I think this is not a solution for leak.

@lenaky lenaky closed this Apr 29, 2022
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.

1 participant