Re-create client_service after stopping client's runloop and let it destroy asynchronously

Summary: related to T11798, #5

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D27882
This commit is contained in:
Korina Šimičević
2024-02-13 10:31:18 +01:00
parent 10aabbb483
commit 19aaba3cdc
8 changed files with 85 additions and 41 deletions

View File

@@ -81,6 +81,10 @@ public:
_endpoints.brokers(std::move(hosts), default_port);
}
void clone_endpoints(const autoconnect_stream& other) {
_endpoints.clone_servers(other._endpoints);
}
bool is_open() const noexcept {
return lowest_layer(*_stream_ptr).is_open();
}