aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2025-02-16 13:32:59 +0000
committerMatthew Wild <mwild1@gmail.com>2025-02-16 13:32:59 +0000
commit573e9f27169c5791c81d0548149afca880395bda (patch)
treea6a649ab400937d91cd3fd95bf118aec759f13e0
parent1bb0fa47bc6e6a8f95003078f34f5e64f64a58cf (diff)
downloadprosody-573e9f27169c5791c81d0548149afca880395bda.tar.gz
prosody-573e9f27169c5791c81d0548149afca880395bda.zip
mod_bosh, mod_websocket: Add soft dependency on mod_http_altconnect
-rw-r--r--plugins/mod_bosh.lua2
-rw-r--r--plugins/mod_websocket.lua2
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 091a7d81..fc2c92ae 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -557,6 +557,8 @@ function module.add_host(module)
["POST /"] = handle_POST;
};
});
+
+ module:depends("http_altconnect", true);
end
if require"prosody.core.modulemanager".get_modules_for_host("*"):contains(module.name) then
diff --git a/plugins/mod_websocket.lua b/plugins/mod_websocket.lua
index 7120f3cc..dfc1a215 100644
--- a/plugins/mod_websocket.lua
+++ b/plugins/mod_websocket.lua
@@ -367,6 +367,8 @@ function module.add_host(module)
};
});
+ module:depends("http_altconnect", true);
+
module:hook("c2s-read-timeout", keepalive, -0.9);
end