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

Remove pending buffer when stream closed #245

Merged
merged 1 commit into from
Nov 18, 2022
Merged

Conversation

jerry-tao
Copy link
Member

Description

See #239

Reference issue

See #239

Copy link
Member

@enobufs enobufs left a comment

Choose a reason for hiding this comment

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

Removal of pending data looks good. I have one comment. Please let me know if you have any questions.

stream.go Outdated Show resolved Hide resolved
vnet_test.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Nov 14, 2022

Codecov Report

Base: 80.87% // Head: 80.74% // Decreases project coverage by -0.13% ⚠️

Coverage data is based on head (e708220) compared to base (fc1168c).
Patch coverage: 86.11% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #245      +/-   ##
==========================================
- Coverage   80.87%   80.74%   -0.14%     
==========================================
  Files          48       48              
  Lines        4032     4046      +14     
==========================================
+ Hits         3261     3267       +6     
- Misses        629      636       +7     
- Partials      142      143       +1     
Flag Coverage Δ
go 80.74% <86.11%> (-0.14%) ⬇️
wasm 66.53% <80.55%> (-0.93%) ⬇️

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

Impacted Files Coverage Δ
chunk_payload_data.go 72.83% <ø> (ø)
association.go 84.69% <75.00%> (-0.11%) ⬇️
stream.go 91.15% <91.66%> (-1.56%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jerry-tao jerry-tao changed the title [WIP] Filter the pending queue after stream closed by remote Remove pending buffer when stream closed Nov 14, 2022
@jerry-tao jerry-tao changed the title Remove pending buffer when stream closed [WIP]Remove pending buffer when stream closed Nov 14, 2022
@jerry-tao jerry-tao changed the title [WIP]Remove pending buffer when stream closed Remove pending buffer when stream closed Nov 14, 2022
@jerry-tao
Copy link
Member Author

@enobufs I think this PR is ready to merge, but there are two minor problems left:

  • If close too quickly, the DECP message may be removed too.
  • When the buffer is big, the sisToReset message will be delayed.

I think these could be fixed when refactoring as you said in #77.

@enobufs enobufs self-requested a review November 18, 2022 09:37
Copy link
Member

@enobufs enobufs left a comment

Choose a reason for hiding this comment

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

I'm glad that we came to a solution we both agree. Thanks @jerry-tao for your support.

@enobufs enobufs merged commit c0159aa into pion:master Nov 18, 2022
@edaniels
Copy link
Member

@enobufs it seems like this may have caused a regression for TestEOF in webrtc https://github.com/pion/webrtc/actions/runs/3677598072/jobs/6219774157

edaniels added a commit to edaniels/sctp that referenced this pull request Dec 12, 2022
Addresses a regression introduced by pion#245
edaniels added a commit to edaniels/sctp that referenced this pull request Dec 12, 2022
Addresses a regression introduced by pion#245
edaniels added a commit to edaniels/sctp that referenced this pull request Dec 12, 2022
Addresses a regression introduced by pion#245
edaniels added a commit to edaniels/sctp that referenced this pull request Dec 12, 2022
Addresses a regression introduced by pion#245
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.

3 participants