I looked at the code but I still have some questions about the behavior of the Primary/Secondary strategy.
1) If the Primary fails I assume the MUXPool will switch over to the Secondary.
When the Primary is restored does the connection stay on the Secondary?
That is, only a disconnect causes a switch.
2) Assuming my MUXPool is up and waiting, as the primary and secondary servers come up
will whichever one comes up first be the active even if it is the secondary?
3) If the connection is the Primary and I want to take it down for service,
is there a way to force a failover to the Secondary?
I can't just kill the Primary because there are in-flight messages being processed.
In short I need a state diagram of Primary active/available/failed and Secondary active/available/failed
and the transitions due to bringup, failures, etc.