Remove some old debugging code from mod_bosh

Sat, 27 Dec 2008 21:23:14 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 27 Dec 2008 21:23:14 +0000
changeset 660
b2c4a7ec31c6
parent 659
c424bec771d9
child 661
59c3f9a49969

Remove some old debugging code from mod_bosh

plugins/mod_bosh.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_bosh.lua	Sat Dec 27 21:22:49 2008 +0000
+++ b/plugins/mod_bosh.lua	Sat Dec 27 21:23:14 2008 +0000
@@ -187,7 +187,7 @@
 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 @@
 			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);

mercurial