Merge pull request #39784 from rzarzynski/wip-crimson-monc-close-active-conn-on-reset

crimson/monc: close() active_con before destructing it on resets.

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2021-03-02 20:48:35 +08:00 committed by GitHub
commit 504aaaa9e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -515,6 +515,7 @@ void Client::ms_handle_reset(crimson::net::ConnectionRef conn, bool /* is_replac
return seastar::now();
} else if (active_con && active_con->is_my_peer(conn->get_peer_addr())) {
logger().warn("active conn reset {}", conn->get_peer_addr());
active_con->close();
active_con.reset();
return reopen_session(-1).then([this](bool opened) {
if (opened) {