mod_csi_simple: Reset queue counter to zero when enabling

For symmetry.
This commit is contained in:
Kim Alvefur 2020-05-09 17:07:43 +02:00
parent 859c3650e5
commit e1a3982654

View file

@ -124,6 +124,7 @@ end
function enable_optimizations(session)
if session.conn and session.conn.pause_writes then
session.conn:pause_writes();
session.csi_counter = 0;
filters.add_filter(session, "stanzas/out", manage_buffer);
filters.add_filter(session, "bytes/in", flush_buffer);
else