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

stream: Add "SetReadDeadline" #241

Merged
merged 1 commit into from
Oct 18, 2022
Merged

Conversation

nerd2
Copy link

@nerd2 nerd2 commented Oct 15, 2022

Description

Add a read-deadline method similar to net.Conn/net.PacketConn to allow read timeouts to be implemented

Reference issue

Fixes #240

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 have left one comment. Everything else looks good, vnice work!

stream.go Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Oct 16, 2022

Codecov Report

Base: 81.04% // Head: 80.92% // Decreases project coverage by -0.11% ⚠️

Coverage data is based on head (659fc90) compared to base (37fd189).
Patch coverage: 63.15% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #241      +/-   ##
==========================================
- Coverage   81.04%   80.92%   -0.12%     
==========================================
  Files          48       48              
  Lines        3994     4032      +38     
==========================================
+ Hits         3237     3263      +26     
- Misses        618      628      +10     
- Partials      139      141       +2     
Flag Coverage Δ
go 80.92% <63.15%> (-0.12%) ⬇️
wasm 67.46% <5.26%> (-0.60%) ⬇️

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

Impacted Files Coverage Δ
stream.go 92.70% <63.15%> (-4.50%) ⬇️
association.go 84.91% <0.00%> (+0.11%) ⬆️

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.

@nerd2 nerd2 force-pushed the sl_setreaddeadline branch from 3876589 to 396e5d5 Compare October 16, 2022 19:28
stream.go Outdated Show resolved Hide resolved
@nerd2 nerd2 force-pushed the sl_setreaddeadline branch from 396e5d5 to 0883959 Compare October 17, 2022 07:57
@enobufs enobufs self-requested a review October 18, 2022 04:58
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.

Thanks so much @nerd2. SetReadDeadline() is going to be very useful.

Add SetReadDeadline method to the Stream object to allow read timeout
to be implemented
@enobufs enobufs force-pushed the sl_setreaddeadline branch from 0883959 to 659fc90 Compare October 18, 2022 05:36
@enobufs enobufs merged commit 53ef50f into pion:master Oct 18, 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.

SCTP Streams have no SetReadDeadline
2 participants