]> git.apps.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>
Fri, 13 Dec 2024 12:44:44 +0000 (13:44 +0100)
commit331b5ea322537d380996ac6b250898ba474500be
treea21be7a7d319105b1bc8fe257765120fb680802a
parent20885b11794ba80d5cddd178994865a83da7240f
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>
src/librbd/migration/HttpClient.cc