# HG changeset patch # User Matthew Wild # Date 1343497804 -3600 # Node ID 28d56268a72d3162cdc4921bf9a83070b093f70f # Parent 9962fc19f9e9342065982b18351576f484c50e08 mod_bosh: Backout revision bc0a68cae236 (experimental bosh_auto_cork option) as I don't believe it works diff -r 9962fc19f9e9 -r 28d56268a72d plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Sat Jul 28 01:28:14 2012 +0100 +++ b/plugins/mod_bosh.lua Sat Jul 28 18:50:04 2012 +0100 @@ -32,7 +32,6 @@ local BOSH_DEFAULT_REQUESTS = module:get_option_number("bosh_max_requests", 2); local consider_bosh_secure = module:get_option_boolean("consider_bosh_secure"); -local auto_cork = module:get_option_boolean("bosh_auto_cork", false); local default_headers = { ["Content-Type"] = "text/xml; charset=utf-8" }; @@ -264,7 +263,7 @@ end --log("debug", "Sending BOSH data: %s", tostring(s)); local oldest_request = r[1]; - if oldest_request and (not(auto_cork) or waiting_requests[oldest_request]) then + if oldest_request then log("debug", "We have an open request, so sending on that"); oldest_request.headers = default_headers; oldest_request:send(t_concat({