1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-10 13:23:41 +00:00

Updated compression statistics

This commit is contained in:
Bryan Roe
2020-07-16 17:02:48 -07:00
parent de646bc728
commit 42642f1433

View File

@@ -3938,7 +3938,14 @@ ILibTransport_DoneState ILibDuktape_httpStream_webSocket_WriteWebSocketPacket(IL
}
}
state->actualSent += ((uint64_t)headerLen + (uint64_t)bufferLen);
if (compressedBuffer != NULL) { ILibMemory_Free(compressedBuffer); }
if (compressedBuffer != NULL)
{
ILibMemory_Free(compressedBuffer);
}
else
{
state->uncompressedSent += ((uint64_t)bufferLen + (uint64_t)headerLen);
}
return retVal;
}
ILibTransport_DoneState ILibDuktape_httpStream_webSocket_EncodedWriteSink_DispatchUnshift(ILibDuktape_DuplexStream *stream, char *buffer, int bufferLen)