summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2021-06-10 12:07:51 +0200
committerEric Blake2021-06-18 17:59:53 +0200
commitf58b2dfe3e815d0c8491b33c36622824e8a08e40 (patch)
treec467b6ca4ea66fbaffe056092b79daac8ed621bf /include
parentnbd/client-connection: implement connection retry (diff)
downloadqemu-f58b2dfe3e815d0c8491b33c36622824e8a08e40.tar.gz
qemu-f58b2dfe3e815d0c8491b33c36622824e8a08e40.tar.xz
qemu-f58b2dfe3e815d0c8491b33c36622824e8a08e40.zip
nbd/client-connection: shutdown connection on release
Now, when a thread can do negotiation and retry, it may run relatively long. We need a mechanism to stop it, when the user is not interested in a result any more. So, on nbd_client_connection_release() let's shutdown the socket, and do not retry connection if thread is detached. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20210610100802.5888-22-vsementsov@virtuozzo.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions