# HG changeset patch # User Kim Alvefur # Date 1576539279 -3600 # Node ID 7a82f7ecf0ceddfb57270aa83697274f61ad33d9 # Parent 3089086d31fa0c632569a26f2b2fb24bc1be45a9 mod_s2s: Remove obsolete pre-connect buffer Originally added in c500d4cb7855 Dead code since the net.connect switch in 756b8821007a diff -r 3089086d31fa -r 7a82f7ecf0ce plugins/mod_s2s/mod_s2s.lua --- a/plugins/mod_s2s/mod_s2s.lua Mon Dec 16 02:02:47 2019 +0100 +++ b/plugins/mod_s2s/mod_s2s.lua Tue Dec 17 00:34:39 2019 +0100 @@ -438,20 +438,6 @@ 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