mod_bosh: Remove some hacky code for pruning dead requests that hopefully never gets...
authorMatthew Wild <mwild1@gmail.com>
Mon, 17 May 2010 10:45:11 +0000 (11:45 +0100)
committerMatthew Wild <mwild1@gmail.com>
Mon, 17 May 2010 10:45:11 +0000 (11:45 +0100)
plugins/mod_bosh.lua

index 150d1fd0591e03e094e1f8e22630ba84f6874167..56e626804103c570f5a04f3169fefa23d54b25a0 100644 (file)
@@ -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>" };