Re: [libvirt] [PATCH 9/9] rpc: client: stream: fix multi thread abort/finish

2019-02-08 Thread Michal Privoznik
On 2/7/19 1:58 PM, Nikolay Shirokovskiy wrote: If 2 threads call abort for example then one of them will hang because client will send 2 abort messages and server will reply only on first of them, the second will be ignored. And on server reply client changes the state only one of abort message t

[libvirt] [PATCH 9/9] rpc: client: stream: fix multi thread abort/finish

2019-02-07 Thread Nikolay Shirokovskiy
If 2 threads call abort for example then one of them will hang because client will send 2 abort messages and server will reply only on first of them, the second will be ignored. And on server reply client changes the state only one of abort message to complete, the second will hang forever. There a