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:
parent
fd6c653d3c
commit
276bd2223e
16 changed files with 458 additions and 12 deletions
|
@ -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.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue