mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
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>
This commit is contained in:
parent
7b694f43f2
commit
93d67c58c2
@ -747,6 +747,7 @@ daemonStreamHandleWrite(virNetServerClient *client,
|
||||
* Otherwise just carry on with processing stream
|
||||
* data. */
|
||||
ret = daemonStreamHandleHole(client, stream, msg);
|
||||
status = msg->header.status;
|
||||
} else if (msg->header.type == VIR_NET_STREAM) {
|
||||
status = msg->header.status;
|
||||
switch (status) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user