diff options
| author | Vladimir Sementsov-Ogievskiy | 2021-06-10 12:07:51 +0200 |
|---|---|---|
| committer | Eric Blake | 2021-06-18 17:59:53 +0200 |
| commit | f58b2dfe3e815d0c8491b33c36622824e8a08e40 (patch) | |
| tree | c467b6ca4ea66fbaffe056092b79daac8ed621bf /qapi/qapi-dealloc-visitor.c | |
| parent | nbd/client-connection: implement connection retry (diff) | |
| download | qemu-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 'qapi/qapi-dealloc-visitor.c')
0 files changed, 0 insertions, 0 deletions
