Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion core/io/mcbp_session.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,8 @@ class mcbp_session_impl
if (stopped_) {
return;
}
bootstrapped_ = false;
bootstrap_handler_ = nullptr;
state_ = diag::endpoint_state::connecting;
if (stream_->is_open()) {
std::string old_id = stream_->id();
Expand Down Expand Up @@ -1554,7 +1556,7 @@ class mcbp_session_impl
CB_LOG_TRACE("{} MCBP recv {}", self->log_prefix_, mcbp_header_view(msg.header_data()));
if (self->bootstrapped_) {
self->handler_->handle(std::move(msg));
} else {
} else if (self->bootstrap_handler_) {
self->bootstrap_handler_->handle(std::move(msg));
}
if (self->stopped_) {
Expand Down