diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2021-06-10 13:07:51 +0300 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2021-06-18 10:59:53 -0500 |
commit | f58b2dfe3e815d0c8491b33c36622824e8a08e40 (patch) | |
tree | c467b6ca4ea66fbaffe056092b79daac8ed621bf /linux-user/microblaze | |
parent | e0e67cbe58f42500e3451c46b3caba572f2a965f (diff) | |
download | qemu-f58b2dfe3e815d0c8491b33c36622824e8a08e40.zip qemu-f58b2dfe3e815d0c8491b33c36622824e8a08e40.tar.gz qemu-f58b2dfe3e815d0c8491b33c36622824e8a08e40.tar.bz2 |
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 'linux-user/microblaze')
0 files changed, 0 insertions, 0 deletions