aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-12-27 21:23:14 +0000
committerMatthew Wild <mwild1@gmail.com>2008-12-27 21:23:14 +0000
commitaf47bf1b39e49fde30496dba37259ea49e148c1d (patch)
tree3398e36eeceb0d97c2dd6010da7c386224d0f8f7
parentb12f8a8177f19c3a9d9d91d9118eaafe7fb20a75 (diff)
downloadprosody-af47bf1b39e49fde30496dba37259ea49e148c1d.tar.gz
prosody-af47bf1b39e49fde30496dba37259ea49e148c1d.zip
Remove some old debugging code from mod_bosh
-rw-r--r--plugins/mod_bosh.lua9
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 776c3145..b3b4aebb 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -187,7 +187,7 @@ function stream_callbacks.handlestanza(request, stanza)
end
function on_timer()
- log("debug", "Checking for requests soon to timeout...");
+ -- log("debug", "Checking for requests soon to timeout...");
-- Identify requests timing out within the next few seconds
local now = os_time() + 3;
for request in pairs(waiting_requests) do
@@ -198,14 +198,9 @@ function on_timer()
if request.conn then
sessions[request.sid].send("");
end
- else
- log("debug", "%s timing out in %ds [destroyed: %s]", request.id, request.reply_before - now, tostring(request.destroyed));
- end
- if not request.on_destroy then
- log("warn", "%s has no on_destroy!", request.id);
end
end
end
httpserver.new{ port = 5280, base = "http-bind", handler = handle_request, ssl = false}
-server.addtimer(on_timer); \ No newline at end of file
+server.addtimer(on_timer);