25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00
SVN Revision: 938
This commit is contained in:
Mickaël Rémond 2007-09-14 14:19:07 +00:00
parent 78e6eb58d4
commit 653e6c1791

View File

@ -266,6 +266,7 @@ find_connection(From, To) ->
end. end.
choose_connection(From, Connections) -> choose_connection(From, Connections) ->
% use sticky connections based on the full JID of the sender
El = lists:nth(erlang:phash(From, length(Connections)), Connections), El = lists:nth(erlang:phash(From, length(Connections)), Connections),
%El = lists:nth(random:uniform(length(Connections)), Connections), %El = lists:nth(random:uniform(length(Connections)), Connections),
?ERROR_MSG("XXX using ejabberd_s2s_out ~p~n", [El#s2s.pid]), ?ERROR_MSG("XXX using ejabberd_s2s_out ~p~n", [El#s2s.pid]),