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

add shutdown to close #2885

Closed
wants to merge 1 commit into from
Closed

add shutdown to close #2885

wants to merge 1 commit into from

Conversation

craymond12
Copy link
Contributor

Description

Reference issue

Fixes #...

@Sean-Der
Copy link
Member

@craymond12 Do we not do a graceful close currently without this?

craymond12

This comment was marked as outdated.

@craymond12
Copy link
Contributor Author

@craymond12 Do we not do a graceful close currently without this?

sorry, i was supposed to push on my fork to test things
Currently when we close the webrtc connection we do not send the shutdown message

This often cause the webrtc stream to hang until timeout on the producer side when the consumer leave
Chrome do send it

@craymond12 craymond12 closed this Aug 23, 2024
@Sean-Der
Copy link
Member

@craymond12 we can run the tests here! If you open the PR again I can run the tests and if they pass we can merge things.

Would it be possible to write a test? Otherwise someone might undo your fix accidentally.

@Sean-Der Sean-Der reopened this Aug 23, 2024
Copy link

codecov bot commented Aug 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.11%. Comparing base (64a837f) to head (61abac2).
Report is 7 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (64a837f) and HEAD (61abac2). Click for more details.

HEAD has 2 uploads less than BASE
Flag BASE (64a837f) HEAD (61abac2)
go 2 0
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2885       +/-   ##
===========================================
- Coverage   78.96%   65.11%   -13.85%     
===========================================
  Files          89       67       -22     
  Lines        8461     3262     -5199     
===========================================
- Hits         6681     2124     -4557     
+ Misses       1294     1011      -283     
+ Partials      486      127      -359     
Flag Coverage Δ
go ?
wasm 65.11% <ø> (ø)

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.

@craymond12
Copy link
Contributor Author

@craymond12 we can run the tests here! If you open the PR again I can run the tests and if they pass we can merge things.

Would it be possible to write a test? Otherwise someone might undo your fix accidentally.

this was kind of hackish, would have to think more about the context sent to the shutdown

@craymond12
Copy link
Contributor Author

@craymond12 we can run the tests here! If you open the PR again I can run the tests and if they pass we can merge things.

Would it be possible to write a test? Otherwise someone might undo your fix accidentally.

the root of the issue is a lot of onvif camera support 2 to 4 streams, Having the webrtc hang in the camera for around 30 seconds can be an issue

I intended to explore this behavior in a fork to avoid creating some noise here
But once satisfied I will publish a PR here

@craymond12
Copy link
Contributor Author

@craymond12 we can run the tests here! If you open the PR again I can run the tests and if they pass we can merge things.

Would it be possible to write a test? Otherwise someone might undo your fix accidentally.

I managed to do some test with some real Axis device and it work

I am thinking of having a new peerConnection Close method to which we will be able to pass down the context for cancellation
I will be off for 1 week and in my return i will update the pr and look at the tests

@edaniels
Copy link
Member

@craymond12 we can run the tests here! If you open the PR again I can run the tests and if they pass we can merge things.
Would it be possible to write a test? Otherwise someone might undo your fix accidentally.

I managed to do some test with some real Axis device and it work

I am thinking of having a new peerConnection Close method to which we will be able to pass down the context for cancellation I will be off for 1 week and in my return i will update the pr and look at the tests

Given how new the method is, you can probably put the context into GracefulClose

@craymond12 craymond12 closed this by deleting the head repository Sep 6, 2024
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.

3 participants