Re: [libvirt] [PATCH 6/9] rpc: client: incapsulate error checks

2019-02-08 Thread Michal Privoznik
On 2/7/19 1:58 PM, Nikolay Shirokovskiy wrote: Checking virNetClientStreamRaiseError without client lock is racy which is fixed in [1] for example. Thus let's remove such checks when we are sending message to server. And in other cases (like virNetClientStreamRecvHole for example) let's move the

[libvirt] [PATCH 6/9] rpc: client: incapsulate error checks

2019-02-07 Thread Nikolay Shirokovskiy
Checking virNetClientStreamRaiseError without client lock is racy which is fixed in [1] for example. Thus let's remove such checks when we are sending message to server. And in other cases (like virNetClientStreamRecvHole for example) let's move the check into client stream code. virNetClientStrea