summary refs log tree commit diff stats
path: root/scripts/block-coroutine-wrapper.py
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-06-10 13:07:51 +0300
committerEric Blake <eblake@redhat.com>2021-06-18 10:59:53 -0500
commitf58b2dfe3e815d0c8491b33c36622824e8a08e40 (patch)
treec467b6ca4ea66fbaffe056092b79daac8ed621bf /scripts/block-coroutine-wrapper.py
parente0e67cbe58f42500e3451c46b3caba572f2a965f (diff)
downloadfocaccia-qemu-f58b2dfe3e815d0c8491b33c36622824e8a08e40.tar.gz
focaccia-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 'scripts/block-coroutine-wrapper.py')
0 files changed, 0 insertions, 0 deletions