Changeset

3040:c02d0e7e088e

mod_bosh: Remove some hacky code for pruning dead requests that hopefully never gets executed - if it does there's a bug anyway.
author Matthew Wild <mwild1@gmail.com>
date Mon, 17 May 2010 11:45:11 +0100
parents 3039:2fef108d7eb7
children 3041:7489ac1d5938
files plugins/mod_bosh.lua
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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>" };