From 653e6c17912076efb37acb835e3448eee0947df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20R=C3=A9mond?= Date: Fri, 14 Sep 2007 14:19:07 +0000 Subject: [PATCH] Comment. SVN Revision: 938 --- src/ejabberd_s2s.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ejabberd_s2s.erl b/src/ejabberd_s2s.erl index 14c1de9dc..02a6c49d9 100644 --- a/src/ejabberd_s2s.erl +++ b/src/ejabberd_s2s.erl @@ -266,6 +266,7 @@ find_connection(From, To) -> end. 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(random:uniform(length(Connections)), Connections), ?ERROR_MSG("XXX using ejabberd_s2s_out ~p~n", [El#s2s.pid]),