-
Vladimir Sementsov-Ogievskiy authored
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>Vladimir Sementsov-Ogievskiy authoredAdd 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>
Loading