mod_s2s_smacks_timeout/mod_s2s_smacks_timeout.lua
author Matthew Wild <mwild1@gmail.com>
Wed, 07 Feb 2024 11:57:30 +0000
changeset 5837 58df53eefa28
parent 4985 f0fe95f9e21c
permissions -rw-r--r--
mod_pubsub_mqtt: Update to MQTT 3.1.1

module:depends("smacks");

module:hook("smacks-ack-delayed", function (event)
	if event.origin.type == "s2sin" or event.origin.type == "s2sout" then
		event.origin:close("connection-timeout");
		return true;
	end
end);