# HG changeset patch # User Sam Whited # Date 1473273149 -3600 # Node ID 449de852cf38ae8570b0c6c213f622745820331d # Parent 17e42f793341c88866413daa55df555aa115fd69 mod_bosh: Save last response in case retransmission is required diff -r 17e42f793341 -r 449de852cf38 plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Fri Sep 02 22:13:54 2016 +0100 +++ b/plugins/mod_bosh.lua Wed Sep 07 19:32:29 2016 +0100 @@ -335,7 +335,8 @@ body_attr["xmlns:xmpp"] = "urn:xmpp:xbosh"; body_attr["xmpp:version"] = "1.0"; end - oldest_request:send(st.stanza("body", body_attr):top_tag()..t_concat(session.send_buffer)..""); + session.bosh_last_response = st.stanza("body", body_attr):top_tag()..t_concat(session.send_buffer)..""; + oldest_request:send(session.bosh_last_response); session.send_buffer = {}; end return true;