]> git.ipfire.org Git - thirdparty/libvirt.git/commit
daemon: fix wrong request count for sparse stream
authorVincent Vanlaer <libvirt-e6954efa@volkihar.be>
Mon, 19 Feb 2024 22:24:02 +0000 (23:24 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 26 Feb 2024 09:03:34 +0000 (10:03 +0100)
commit93d67c58c2fc6a9326d5ea6a77304626a1d37394
tree62df43f0c023205dd46394c773a50f4fcb8ce3d4
parent7b694f43f259beef26b887e1037d67767f48f688
daemon: fix wrong request count for sparse stream

Similar to when actual data is being written to the stream, it is
necessary to acknowledge handling of the client request when a hole is
encountered. This is done later in daemonStreamHandleWrite by sending a
fake zero-length reply if the status variable is set to
VIR_STREAM_CONTINUE. It seems that setting status from the message
header was missed for holes in the introduction of the sparse stream
feature.

Signed-off-by: Vincent Vanlaer <libvirt-e6954efa@volkihar.be>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/remote/remote_daemon_stream.c