]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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:51:21 +0000 (09:51 +0100)
commit1e66e09e0f6c0cb3ed3de8ad3d98d61d7bf2a8d8
tree3a89cb4275d9d1ed934510256094cbb1aa9a7edb
parentc7d197520c383314de6091c888a26e575ce972d5
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