Fixed RTMP rate limiter issue
This commit is contained in:
parent
3ae2dc0ae8
commit
7b617e44ae
1 changed files with 1 additions and 1 deletions
|
@ -536,7 +536,7 @@ namespace Mist {
|
|||
void OutRTMP::requestHandler(){
|
||||
//If needed, slow down the reading to a rate of maxbps on average
|
||||
static bool slowWarned = false;
|
||||
while (maxbps && (Util::epoch() - myConn.connTime()) && myConn.dataDown() / (Util::epoch() - myConn.connTime()) > maxbps){
|
||||
if (maxbps && (Util::epoch() - myConn.connTime()) && myConn.dataDown() / (Util::epoch() - myConn.connTime()) > maxbps){
|
||||
if (!slowWarned){
|
||||
WARN_MSG("Slowing down connection from %s because rate of %llukbps > %llukbps", getConnectedHost().c_str(), (myConn.dataDown() / (Util::epoch() - myConn.connTime())) / 128, maxbps / 128);
|
||||
slowWarned = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue