comparison mod_http_admin_api/mod_http_admin_api.lua @ 4956:65870d42a7b1

mod_http_admin_api: Update for 0.12 changes to mod_smacks
author Kim Alvefur <zash@zash.se>
date Sun, 29 May 2022 02:03:41 +0200
parents 404a22d52376
children 1b5869c34026
comparison
equal deleted inserted replaced
4955:537054999093 4956:65870d42a7b1
223 info.queues.held_stanzas = session.csi_counter or 0; 223 info.queues.held_stanzas = session.csi_counter or 0;
224 end 224 end
225 -- Smacks queue 225 -- Smacks queue
226 if session.last_requested_h and session.last_acknowledged_stanza then 226 if session.last_requested_h and session.last_acknowledged_stanza then
227 info.queues.awaiting_acks = session.last_requested_h - session.last_acknowledged_stanza; 227 info.queues.awaiting_acks = session.last_requested_h - session.last_acknowledged_stanza;
228 elseif session.outgoing_stanza_queue then
229 -- New mod_smacks
230 info.queues.awaiting_acks = session.outgoing_stanza_queue:count_unacked();
228 end 231 end
229 if session.push_identifier then 232 if session.push_identifier then
230 info.push_info = { 233 info.push_info = {
231 id = session.push_identifier; 234 id = session.push_identifier;
232 wakeup_push_sent = session.first_hibernated_push; 235 wakeup_push_sent = session.first_hibernated_push;