Log send stalls
This commit is contained in:
parent
25c8a4c1c7
commit
da1249ab88
@ -1252,7 +1252,12 @@ void RTMPPublisher::SocketLoop()
|
|||||||
|
|
||||||
if (lastSendTime)
|
if (lastSendTime)
|
||||||
{
|
{
|
||||||
totalSendPeriod += OSGetTime() - lastSendTime;
|
DWORD diff = OSGetTime() - lastSendTime;
|
||||||
|
|
||||||
|
if (diff >= 1500)
|
||||||
|
Log(TEXT("RTMPPublisher::SendLoop: Stalled for %u ms (buffer: %d / %d), unstable connection?"), diff, curDataBufferLen, dataBufferSize);
|
||||||
|
|
||||||
|
totalSendPeriod += diff;
|
||||||
totalSendBytes += ret;
|
totalSendBytes += ret;
|
||||||
totalSendCount++;
|
totalSendCount++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user