-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
add shutdown to close #2885
Conversation
@craymond12 Do we not do a graceful close currently without this? |
sorry, i was supposed to push on my fork to test things This often cause the webrtc stream to hang until timeout on the producer side when the consumer leave |
@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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
this was kind of hackish, would have to think more about the context sent to the shutdown |
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 |
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 |
Given how new the method is, you can probably put the context into GracefulClose |
Description
Reference issue
Fixes #...