QGrpcHttp2Channel: warn when the outgoing message queue keeps growing
The channel queues outgoing messages without a size limit. An
application that writes faster than the network transmits them grows
the queue without bound and eventually exhausts client memory, with no
diagnostic pointing at the cause.
Track the bytes resident in the outgoing queue and warn when they
exceed 16 MiB, doubling the threshold after each report (32, 64 MiB,
...). A steady large upload thus warns once, while a runaway queue
leaves an escalating trail instead of per-write spam. Messages already
dequeued for transmission do not count, so a single large message in
transmission does not trip the warning.
Pick-to: 6.12 6.11 6.8
Task-number: QTBUG-148066
Change-Id: Iba15be8d80aae185ae2ea4d791a308d1b5af2836
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>