About this, and after reading/writing other posts in other parts of 
this thread:

Le 17/09/2012 17:50, Tomasz Sterna a écrit :
I would just make it temporary and extend it to all routing levels.
Whenever the router makes a (random) decision to choose one of equal
binds to route to, it sticks to this decision for a predefined time.

        I don't see any need to stick with a (now weighted) random decision, other than 
in the "user@domain" auto-bind case.

        According to the pseudo code I've just written there are 3 cases where 
the router makes a random decision:

        1) to="ad...@example.com" (with or without resource) or to="example.com", and no 
"example.com" domain bound => weighted random on default routes (whether we accept multiple default 
routes or not, and how, is another question)
        2) to="ad...@example.com" (with or without resource), no "ad...@example.com" bare JID bound and more 
than one component accepting "example.com" => weighted random on "example.com" routes + auto-bind 
"ad...@example.com" to the chosen route
        3) to="example.com" and more than one component accepting "example.com" => 
weighted random on "example.com" routes

        Do you see any other case?
--
--      \^/                                            --
--    -/ O \---------------------------------------    --
--   | |/ \|      Alexandre (Midnite) Jousset      |   --
--    -|___|---------------------------------------    --


Reply via email to