Remove http_poll, it was removed in ejabberd 15.04

This commit is contained in:
Badlop 2023-05-04 16:49:43 +02:00
parent dcc59aef75
commit 0bccf45c0e
2 changed files with 0 additions and 5 deletions

View File

@ -219,7 +219,6 @@ write_stats(I, node, Node, F, T) ->
%fwttl(F, "plainusers", T), %fwttl(F, "plainusers", T),
%fwttl(F, "sslusers", T), %fwttl(F, "sslusers", T),
%fwttl(F, "tlsusers", T), %fwttl(F, "tlsusers", T),
fwttl(F, "httppollusers", T),
fwttl(F, "httpbindusers", T), fwttl(F, "httpbindusers", T),
fwttl(F, "s2sconnections", T), fwttl(F, "s2sconnections", T),
fwttl(F, "s2sservers", T), fwttl(F, "s2sservers", T),

View File

@ -485,8 +485,6 @@ get(_, ["registeredusers", Host]) -> ejabberd_auth:count_users(Host);
get(_, ["onlineusers", title]) -> "Online users"; get(_, ["onlineusers", title]) -> "Online users";
get(N, ["onlineusers"]) -> rpc:call(N, mnesia, table_info, [session, size]); get(N, ["onlineusers"]) -> rpc:call(N, mnesia, table_info, [session, size]);
get(_, ["onlineusers", Host]) -> length(ejabberd_sm:get_vh_session_list(Host)); get(_, ["onlineusers", Host]) -> length(ejabberd_sm:get_vh_session_list(Host));
get(_, ["httppollusers", title]) -> "HTTP-Poll users (aprox)";
get(N, ["httppollusers"]) -> rpc:call(N, mnesia, table_info, [http_poll, size]);
get(_, ["httpbindusers", title]) -> "HTTP-Bind users (aprox)"; get(_, ["httpbindusers", title]) -> "HTTP-Bind users (aprox)";
get(N, ["httpbindusers"]) -> rpc:call(N, mnesia, table_info, [http_bind, size]); get(N, ["httpbindusers"]) -> rpc:call(N, mnesia, table_info, [http_bind, size]);
@ -976,7 +974,6 @@ list_elem(conntypes, full) ->
{"c2s_tls", c2s_tls}, {"c2s_tls", c2s_tls},
{"c2s_compressed", c2s_compressed}, {"c2s_compressed", c2s_compressed},
{"c2s_compressed_tls", c2s_compressed_tls}, {"c2s_compressed_tls", c2s_compressed_tls},
{"http_poll", http_poll},
{"http_bind", http_bind}, {"http_bind", http_bind},
{"websocket", websocket}, {"websocket", websocket},
{"unknown", unknown} {"unknown", unknown}
@ -1320,7 +1317,6 @@ web_page_node(_, Node, [<<"statsdx">>], _Query, Lang) ->
?XAE(<<"table">>, [], ?XAE(<<"table">>, [],
[?XE(<<"tbody">>, [ [?XE(<<"tbody">>, [
do_stat(global, Lang, "onlineusers"), do_stat(global, Lang, "onlineusers"),
do_stat(Node, Lang, "httppollusers"),
do_stat(Node, Lang, "httpbindusers"), do_stat(Node, Lang, "httpbindusers"),
do_stat(Node, Lang, "s2sconnections"), do_stat(Node, Lang, "s2sconnections"),
do_stat(Node, Lang, "s2sservers") do_stat(Node, Lang, "s2sservers")