Log send stalls

This commit is contained in:
Richard Stanway 2013-09-23 11:00:32 +02:00
parent 25c8a4c1c7
commit da1249ab88

View File

@ -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++;
} }