io/channel-tls: fix handling of bigger read buffers
authorAntoine Damhet <antoine.damhet@shadow.tech>
Tue, 15 Nov 2022 14:23:29 +0000 (15:23 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 15 Feb 2023 16:01:04 +0000 (11:01 -0500)
commitffda5db65aef42266a5053a4be34515106c4c7ee
treeac0e5f48f2def130cc4f3e3a968b7e290bc96b68
parent33ee0d8e2fb5e7772a67c8785554ec9fc9477678
io/channel-tls: fix handling of bigger read buffers

Since the TLS backend can read more data from the underlying QIOChannel
we introduce a minimal child GSource to notify if we still have more
data available to be read.

Signed-off-by: Antoine Damhet <antoine.damhet@shadow.tech>
Signed-off-by: Charles Frey <charles.frey@shadow.tech>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
io/channel-tls.c