diff options
author | Sam Whited <sam@samwhited.com> | 2016-09-07 19:32:29 +0100 |
---|---|---|
committer | Sam Whited <sam@samwhited.com> | 2016-09-07 19:32:29 +0100 |
commit | 8460485ee0ab18d480d45d427445e2862c21c3d6 (patch) | |
tree | 873c9f0bc2d3c0f0dbb650af96f2391fea77a9ff /plugins/mod_bosh.lua | |
parent | d5278ce2fcf7c49ba0f30ca8cd03ebbd5f8ac678 (diff) | |
download | prosody-8460485ee0ab18d480d45d427445e2862c21c3d6.tar.gz prosody-8460485ee0ab18d480d45d427445e2862c21c3d6.zip |
mod_bosh: Save last response in case retransmission is required
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r-- | plugins/mod_bosh.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index c9d8008e..494d11b0 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -335,7 +335,8 @@ function stream_callbacks.streamopened(context, attr) 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).."</body>"); + session.bosh_last_response = st.stanza("body", body_attr):top_tag()..t_concat(session.send_buffer).."</body>"; + oldest_request:send(session.bosh_last_response); session.send_buffer = {}; end return true; |