]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd/migration/HttpClient: don't call disconnect() in handle_handshake()
authorIlya Dryomov <idryomov@gmail.com>
Sat, 7 Dec 2024 11:22:52 +0000 (12:22 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Dec 2024 08:49:43 +0000 (09:49 +0100)
commit364594cef2aee26e46f7e9f27c72e36cd43378db
treebc72f5208cfbda25b13f78b68b79c60d279a54ab
parenteaeb17fa7686f4cdd4fd68de5112e8a87bb1e44f
librbd/migration/HttpClient: don't call disconnect() in handle_handshake()

With m_ssl_enabled set to false, disconnect() is a no-op.  Since
m_ssl_enabled is flipped to true only when the handshake succeeds,
calling disconnect() on "failed to complete handshake" error is bogus
(as would be attempting to shut down SSL there).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 331b5ea322537d380996ac6b250898ba474500be)
src/librbd/migration/HttpClient.cc