25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

* src/mod_muc/mod_muc.erl: Better behaviour under high load

SVN Revision: 748
This commit is contained in:
Alexey Shchepin 2007-03-22 02:26:35 +00:00
parent 77282b0e1a
commit 86cd895b6d
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2007-03-22 Alexey Shchepin <alexey@sevcom.net>
* src/mod_muc/mod_muc.erl: Better behaviour under high load
2007-03-18 Alexey Shchepin <alexey@sevcom.net> 2007-03-18 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_s2s.erl: Don't bounce packets with "error" and * src/ejabberd_s2s.erl: Don't bounce packets with "error" and

View File

@ -474,6 +474,7 @@ iq_disco_items(Host, From, Lang) ->
case catch gen_fsm:sync_send_all_state_event( case catch gen_fsm:sync_send_all_state_event(
Pid, {get_disco_item, From, Lang}, 100) of Pid, {get_disco_item, From, Lang}, 100) of
{item, Desc} -> {item, Desc} ->
flush(),
{true, {true,
{xmlelement, "item", {xmlelement, "item",
[{"jid", jlib:jid_to_string({Name, Host, ""})}, [{"jid", jlib:jid_to_string({Name, Host, ""})},
@ -483,6 +484,13 @@ iq_disco_items(Host, From, Lang) ->
end end
end, get_vh_rooms(Host)). end, get_vh_rooms(Host)).
flush() ->
receive
_ ->
flush()
after 0 ->
ok
end.
-define(XFIELD(Type, Label, Var, Val), -define(XFIELD(Type, Label, Var, Val),
{xmlelement, "field", [{"type", Type}, {xmlelement, "field", [{"type", Type},