From 91492c1a60ae52094dc4ee49b440ea5decefbad1 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 17 May 2010 11:45:11 +0100 Subject: 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 | 5 ----- 1 file changed, 5 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index 150d1fd0..56e62680 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -157,11 +157,6 @@ function stream_callbacks.streamopened(request, attr) 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{"", tostring(s), "" }; -- cgit v1.2.3