mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +00:00
If receiving a stream error, mark EOF on the stream
If we receive an error on the stream, set the EOF marker so that any further (bogus) incoming data is dropped. * src/rpc/virnetclientstream.c: Set EOF on stream
This commit is contained in:
parent
22af84dc52
commit
bc61aa1211
@ -268,6 +268,9 @@ int virNetClientStreamSetError(virNetClientStreamPtr st,
|
||||
st->err.int1 = err.int1;
|
||||
st->err.int2 = err.int2;
|
||||
|
||||
st->incomingEOF = true;
|
||||
virNetClientStreamEventTimerUpdate(st);
|
||||
|
||||
ret = 0;
|
||||
|
||||
cleanup:
|
||||
|
Loading…
Reference in New Issue
Block a user