diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-17 00:34:39 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-17 00:34:39 +0100 |
commit | 3a14bfec85e586c156b60bdb2907acca3815bed9 (patch) | |
tree | 06150db24b1fb7c0f9fa392e4d51366061ca15b5 /plugins/mod_s2s/mod_s2s.lua | |
parent | d1b1a7fa33855e7d46aa2361eeb2851518f4448e (diff) | |
download | prosody-3a14bfec85e586c156b60bdb2907acca3815bed9.tar.gz prosody-3a14bfec85e586c156b60bdb2907acca3815bed9.zip |
mod_s2s: Remove obsolete pre-connect buffer
Originally added in c500d4cb7855
Dead code since the net.connect switch in 756b8821007a
Diffstat (limited to 'plugins/mod_s2s/mod_s2s.lua')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index 6912c9a4..00d8f5d9 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -438,20 +438,6 @@ function stream_callbacks._streamopened(session, attr) end end - -- Send unauthed buffer - -- (stanzas which are fine to send before dialback) - -- Note that this is *not* the stanza queue (which - -- we can only send if auth succeeds) :) - local send_buffer = session.send_buffer; - if send_buffer and #send_buffer > 0 then - log("debug", "Sending s2s send_buffer now..."); - for i, data in ipairs(send_buffer) do - session.sends2s(tostring(data)); - send_buffer[i] = nil; - end - end - session.send_buffer = nil; - -- If server is pre-1.0, don't wait for features, just do dialback if session.version < 1.0 then if not session.dialback_verifying then |