added 'busy' directive

This commit is contained in:
Roman Arutyunyan
2012-10-09 18:22:14 +04:00
parent 72d175ed7f
commit e5d61f2c62
3 changed files with 17 additions and 0 deletions

View File

@ -164,6 +164,13 @@ ngx_rtmp_ping(ngx_event_t *pev)
return;
}
if (cscf->busy) {
ngx_log_error(NGX_LOG_INFO, c->log, 0,
"ping: not busy between pings");
ngx_rtmp_finalize_session(s);
return;
}
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0,
"ping: schedule %Mms", cscf->ping_timeout);