cnderrauber
09af509edb
Add subscription limits ( #1629 )
...
* Add subscription limits
* Add limit to ParticipantParams
* Don't change desired of subscription when reaching limits
* Add subscription limits config
* Revert comment
* solve comments
2023-04-20 14:15:30 +08:00
David Zhao
5ff72a99b9
Report publish & subscribe RTPStats as Telemetry events ( #1506 )
2023-03-10 10:28:54 -08:00
imcdd
1f4fd6aafe
1. Fix wrong atomic pkg from go1.19 std sync/atomic to go.uber.org/atomic ( #1479 )
...
2. Fix CI buildtest config '>=1.18' to '1.18',ensure compatibility with go1.18
2023-03-07 23:27:26 -08:00
David Zhao
ade26f7c9e
Keep track of pending reconciles to avoid duplicate queueReconcile ( #1474 )
2023-02-26 23:45:32 -08:00
Raja Subramanian
73399dd565
Encapsulate better. ( #1466 )
...
Only `logger` and `trackID` of `trackSubscription` is directly accessed
from outside. They are set at construction time. So, should be fine.
2023-02-24 09:34:03 +05:30
Raja Subramanian
cd0359c898
Reset subscription start timer on permission grant. ( #1457 )
...
If not, bind timeout could be reported on permission grant
as it could be using some old timer.
2023-02-23 09:39:33 +05:30
David Zhao
7a2d9b3d61
Ensure subscription logging is clear & without sampling ( #1440 )
2023-02-17 22:15:19 -08:00
David Zhao
c16eb66925
Fix race condition with unsubscribing from a republished track ( #1429 )
2023-02-16 15:11:23 -08:00
David Zhao
4f6fda586c
Do not unsubscribe from track if it's been republished ( #1424 )
...
thank you @boks1971 for the debugging
2023-02-14 23:12:08 -08:00
David Zhao
2851a8ac98
Improved robustness of subscription stack ( #1382 )
...
UpdateSubscription had a shortcoming where when it couldn't find the
participant, it ignored the request.
This PR further removes the reliance of current publisher state from
subscribers.
- SubscribeToTrack only takes in a trackID
- Introduced RoomTrackManager to maintain all published tracks to a room
- Added TrackUnpublished event to clearly indicate when a track has been removed
- SubscribeRequested event no longer include information about the publisher
2023-02-06 18:08:26 -08:00
Raja Subramanian
d67cdb6141
Return early if already subscribed. ( #1377 )
...
* Return early if already subscribed.
When already subscribed, returned `subTrack` is nil.
Return early, but do not return an error.
* check for nil subTrack
* check for nil as well
2023-02-04 13:47:35 +05:30
David Zhao
add9962655
Avoid triggering subscription failed handler unnecessarily. ( #1379 )
...
Certain errors are not at fault of the subscriber. For these errors
the reconciler should keep trying instead of giving up.
2023-02-03 01:06:04 -08:00
David Zhao
40120db993
Tweaks to subscription reconcile timeout ( #1369 )
2023-02-01 22:36:14 -08:00
David Zhao
2048cfbfc7
Increase subscription manager notFound timeout ( #1358 )
...
Giving it more time before triggering the nuclear option of unsubscribing
from the track.
2023-01-31 00:52:12 -08:00
David Zhao
b023c531c2
Fix incorrect unsubscribed track telemetry ( #1350 )
...
- only log unsubscribe on close if Track was actually bound
- update subscribed counters even if a failure had been logged before
2023-01-30 10:16:21 -08:00
David Zhao
21f816d23c
Slight tweaks to subscription manager logging ( #1345 )
2023-01-29 11:45:47 -08:00
David Zhao
c146398f32
Improved subscription manager logging to help with debugging ( #1337 )
2023-01-26 23:31:03 -08:00
David Zhao
2d6c896bba
Fix incorrect accounting for track published/subscribed stats. ( #1336 )
...
It was not getting decremented in certain cases.
2023-01-26 16:07:04 -08:00
David Zhao
cd6b8b80b9
feat: SubscriptionManager to consolidate subscription handling ( #1317 )
...
Added a new manager to handle all subscription needs. Implemented using reconciler pattern. The goals are:
improve subscription resilience by separating desired state and current state
reduce complexity of synchronous processing
better detect failures with the ability to trigger full reconnect
2023-01-24 23:06:16 -08:00