]> xenbits.xensource.com Git - libvirt.git/commit
virNetClientStream: Wire up VIR_NET_STREAM_HOLE
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 20 May 2016 14:35:13 +0000 (16:35 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 18 May 2017 05:42:13 +0000 (07:42 +0200)
commit022705b81f7243a068fb5467be836bd5c06f421b
tree8edec3add5558e304d71bd0874a34b63fb39e5e7
parentd6e5347ce33381c0c1c3d7b52e2e724d347018d6
virNetClientStream: Wire up VIR_NET_STREAM_HOLE

Whenever server sends a client stream packet (either regular with
actual data or stream skip one) it is queued on @st->rx. So the
list is a mixture of both types of stream packets. So now that we
have all the helpers needed we can wire their processing up. But
since virNetClientStreamRecvPacket doesn't support
VIR_STREAM_RECV_STOP_AT_HOLE flag yet, let's turn all received
skips into zeroes repeating requested times.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/rpc/virnetclientstream.c