[core,transport] dump streampool statistics

when waiting for streampool used streams to be returned print out the
locations of streams still in use
This commit is contained in:
akallabeth
2024-12-04 19:09:35 +01:00
parent 08bd80b099
commit 8ff3d282f3

View File

@@ -1730,6 +1730,10 @@ void transport_free(rdpTransport* transport)
if (used == 0)
break;
WLog_Print(transport->log, WLOG_WARN, "%" PRIuz " streams still in use, sleeping...", used);
char buffer[4096] = { 0 };
StreamPool_GetStatistics(transport->ReceivePool, buffer, sizeof(buffer));
WLog_Print(transport->log, WLOG_WARN, "Pool statistics: %s", buffer);
Sleep(100);
}