]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNetClientStreamQueuePacket: Set st->incomingEOF on the end of stream
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 6 Jun 2017 12:45:55 +0000 (14:45 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 7 Jun 2017 16:00:25 +0000 (18:00 +0200)
commit1a4b21f1c67a3ddf39d11bba39c1dee869131636
treeceaa151f72974d4e7a055e891468c2d2cd6b6735
parent836f85d13f363306c37ccf735a3a0074690f7c86
virNetClientStreamQueuePacket: Set st->incomingEOF on the end of stream

While reworking client side of streams, I had to postpone payload
decoding so that stream holes and stream data can be
distinguished in virNetClientStreamRecvPacket. That's merely what
18944b7aea46d does. However, I accidentally removed one important
bit: when server sends us an empty STREAM packet (with no
payload) - meaning end of stream - st->incomingEOF flag needs to
be set. It used to be before I touched the code. After I removed
it, virNetClientStreamRecvPacket will try to fetch more data from
the stream, but it will never come.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
src/rpc/virnetclientstream.c