Software /
code /
prosody
Changeset
976:17af9851c81d
core.s2smanager: Remove some debugging
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 10 Apr 2009 10:36:01 +0100 |
parents | 975:452ff29e296d |
children | 977:6f0bdf9e4dfb |
files | core/s2smanager.lua |
diffstat | 1 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/core/s2smanager.lua Fri Apr 10 10:31:47 2009 +0100 +++ b/core/s2smanager.lua Fri Apr 10 10:36:01 2009 +0100 @@ -15,8 +15,8 @@ local format = string.format; local t_insert, t_sort = table.insert, table.sort; local get_traceback = debug.traceback; -local tostring, pairs, ipairs, getmetatable, print, newproxy, error, tonumber - = tostring, pairs, ipairs, getmetatable, print, newproxy, error, tonumber; +local tostring, pairs, ipairs, getmetatable, newproxy, error, tonumber + = tostring, pairs, ipairs, getmetatable, newproxy, error, tonumber; local idna_to_ascii = require "util.encodings".idna.to_ascii; local connlisteners_get = require "net.connlisteners".get; @@ -38,8 +38,6 @@ local adns = require "net.adns"; -local debug = debug; - incoming_s2s = {}; local incoming_s2s = incoming_s2s; @@ -212,19 +210,15 @@ conn = wrapclient(conn, connect_host, connect_port, cl, cl.default_mode or 1, hosts[from_host].ssl_ctx, false ); host_session.conn = conn; - log("debug", "conn wrapped") -- Register this outgoing connection so that xmppserver_listener knows about it -- otherwise it will assume it is a new incoming connection cl.register_outgoing(conn, host_session); - log("debug", "outgoing registered") - local w = conn.write; host_session.sends2s = function (t) log("debug", "sending: %s", tostring(t)); w(tostring(t)); end conn.write(format([[<stream:stream xmlns='jabber:server' xmlns:db='jabber:server:dialback' xmlns:stream='http://etherx.jabber.org/streams' from='%s' to='%s' version='1.0'>]], from_host, to_host)); log("debug", "Connection attempt in progress..."); - print("foo") return true; end