aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-05-17 11:45:11 +0100
committerMatthew Wild <mwild1@gmail.com>2010-05-17 11:45:11 +0100
commit91492c1a60ae52094dc4ee49b440ea5decefbad1 (patch)
tree7c236ad14aa9f24dc3d22622a3220de8463197c4 /plugins/mod_bosh.lua
parenta36bf4db9b45fcb5ad8686f32a37ec5a8eeb6eba (diff)
downloadprosody-91492c1a60ae52094dc4ee49b440ea5decefbad1.tar.gz
prosody-91492c1a60ae52094dc4ee49b440ea5decefbad1.zip
mod_bosh: Remove some hacky code for pruning dead requests that hopefully never gets executed - if it does there's a bug anyway.
Diffstat (limited to 'plugins/mod_bosh.lua')
-rw-r--r--plugins/mod_bosh.lua5
1 files changed, 0 insertions, 5 deletions
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{"<body xmlns='http://jabber.org/protocol/httpbind' sid='", sid, "' xmlns:stream = 'http://etherx.jabber.org/streams'>", tostring(s), "</body>" };