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

refine bandwidth server-side, use bandwidth sample and kbps limit service

This commit is contained in:
winlin 2014-07-13 10:33:18 +08:00
parent 019b25ea30
commit 79e7e2d6cc
5 changed files with 109 additions and 18 deletions

View file

@ -216,7 +216,7 @@ int SrsRtmpConn::service_cycle()
// do bandwidth test if connect to the vhost which is for bandwidth check.
if (_srs_config->get_bw_check_enabled(req->vhost)) {
return bandwidth->bandwidth_check(rtmp, req, local_ip);
return bandwidth->bandwidth_check(rtmp, io, req, local_ip);
}
if ((ret = rtmp->response_connect_app(req, local_ip.c_str())) != ERROR_SUCCESS) {