1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

SquashSRS4: Support circuit breaker

This commit is contained in:
winlin 2021-05-08 10:04:44 +08:00
parent fd6c653d3c
commit 276bd2223e
16 changed files with 458 additions and 12 deletions

View file

@ -194,8 +194,11 @@ srs_error_t SrsFastTimer::cycle()
return srs_error_wrap(err, "quit");
}
++_srs_pps_timer->sugar;
for (int i = 0; i < (int)handlers_.size(); i++) {
ISrsFastTimer* timer = handlers_.at(i);
if ((err = timer->on_timer(interval_)) != srs_success) {
srs_freep(err); // Ignore any error for shared timer.
}