# HG changeset patch # User Matthew Wild # Date 1239356161 -3600 # Node ID 17af9851c81d96d36a88d2c8e0ec0ddbcf79dfc7 # Parent 452ff29e296d8a6fa54841330de25ecba086e086 core.s2smanager: Remove some debugging diff -r 452ff29e296d -r 17af9851c81d core/s2smanager.lua --- 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([[]], from_host, to_host)); log("debug", "Connection attempt in progress..."); - print("foo") return true; end