mod_bosh: Remove some hacky code for pruning dead requests that hopefully never gets executed - if it does there's a bug anyway.

Mon, 17 May 2010 11:45:11 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 17 May 2010 11:45:11 +0100
changeset 3040
c02d0e7e088e
parent 3039
2fef108d7eb7
child 3041
7489ac1d5938

mod_bosh: Remove some hacky code for pruning dead requests that hopefully never gets executed - if it does there's a bug anyway.

plugins/mod_bosh.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_bosh.lua	Mon May 17 11:42:53 2010 +0100
+++ b/plugins/mod_bosh.lua	Mon May 17 11:45:11 2010 +0100
@@ -157,11 +157,6 @@
 		function session.send(s)
 			--log("debug", "Sending BOSH data: %s", tostring(s));
 			local oldest_request = r[1];
-			while oldest_request and oldest_request.destroyed do
-				t_remove(r, 1);
-				waiting_requests[oldest_request] = nil;
-				oldest_request = r[1];
-			end
 			if oldest_request then
 				log("debug", "We have an open request, so sending on that");
 				response.body = t_concat{"<body xmlns='http://jabber.org/protocol/httpbind' sid='", sid, "' xmlns:stream = 'http://etherx.jabber.org/streams'>", tostring(s), "</body>" };

mercurial