Replace ping retry timer with batch queue fallback (#9207)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2025-06-29 09:08:30 +12:00
1 parent 3f1f99cf37
commit 86c0fb48a3
3 files changed
+32 -19

No files matched your search

+2 -2
View File
@@ -526,8 +526,8 @@ void APIServer::on_shutdown() {
for (auto &c : this->clients_) {
if (!c->send_message(DisconnectRequest())) {
// If we can't send the disconnect request directly (tx_buffer full),
// schedule it in the batch so it will be sent with the 5ms timer
c->schedule_message_(nullptr, &APIConnection::try_send_disconnect_request, DisconnectRequest::MESSAGE_TYPE);
// schedule it at the front of the batch so it will be sent with priority
c->schedule_message_front_(nullptr, &APIConnection::try_send_disconnect_request, DisconnectRequest::MESSAGE_TYPE);
}
}
}