Add new line for proxy connection in order to support tcp paket splitting

This commit is contained in:
Simon Stürz 2022-03-15 15:44:02 +01:00
parent 836e0a5e14
commit 1e2d4b33cf

View File

@ -48,7 +48,7 @@ void CloudTransport::sendData(const QUuid &clientId, const QByteArray &data)
qCDebug(dcCloudTraffic()) << "Sending data" << clientId << data;
foreach (const ConnectionContext &ctx, m_connections) {
if (ctx.clientId == clientId) {
ctx.proxyConnection->sendData(data);
ctx.proxyConnection->sendData(data + '\n');
return;
}
}