[Live-devel] [PATCH 4/4] StreamReplicator: add frame delivery timeout
Stas Tsymbalov
tsymbalov at trueconf.ru
Tue May 19 08:07:35 PDT 2015
Right now if for some reason one replica stops requesting frames from
replicator but dows not deactivates whole delivery process stops as
replicator patiently waits for this replica to request frames.
This patch adds optional frame delivery timeout to StreamReplicator
which functions as follows:
After master replica receives frame, callback is scheduled to be
called after frameDeliveryTimeout microseconds. This callback
deactivates all replicas that didn't manage to request current frame in
time and advances replicator to next frame. Using 0 as frameDeliveryTimeout
disables this feature. Using this feature will allow other replicas to
operate mostly unaffected (other then onetime slowdown in delivery) by
such misbehaving replica.
As a side effect this patch arranges all replicas created by
replicator in a list, which may be good for debugging purposes (right
now replicator does not hold are references to replicas that does not
request anything).
---
liveMedia/StreamReplicator.cpp | 53 +++++++++++++++++++++++++++++------
liveMedia/include/StreamReplicator.hh | 10 +++++--
2 files changed, 53 insertions(+), 10 deletions(-)
--
Stas Tsymbalov
TrueConf LLC
http://trueconf.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-StreamReplicator-add-frame-delivery-timeout.patch
Type: text/x-patch
Size: 8399 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20150519/3c9742dc/attachment.bin>
More information about the live-devel
mailing list