diff options
| author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2021-06-10 13:07:50 +0300 |
|---|---|---|
| committer | Eric Blake <eblake@redhat.com> | 2021-06-18 10:59:53 -0500 |
| commit | e0e67cbe58f42500e3451c46b3caba572f2a965f (patch) | |
| tree | adc32dfa370ad235d0318fad2571c8bc6829aa55 /scripts/block-coroutine-wrapper.py | |
| parent | 130d49baa50655729f09efb72e77bebf09421dd7 (diff) | |
| download | focaccia-qemu-e0e67cbe58f42500e3451c46b3caba572f2a965f.tar.gz focaccia-qemu-e0e67cbe58f42500e3451c46b3caba572f2a965f.zip | |
nbd/client-connection: implement connection retry
Add an option for a thread to retry connecting until it succeeds. We'll use nbd/client-connection both for reconnect and for initial connection in nbd_open(), so we need a possibility to use same NBDClientConnection instance to connect once in nbd_open() and then use retry semantics for reconnect. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20210610100802.5888-21-vsementsov@virtuozzo.com> Reviewed-by: Eric Blake <eblake@redhat.com> [eblake: grammar tweak] Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/block-coroutine-wrapper.py')
0 files changed, 0 insertions, 0 deletions