… more uniform with peering1.py
…s to suffer from starvation. c/peering.cs there seems to be a typo in the example
After a successful failover and the backup is active, a dual masters exception could be thrown if: 1) a client is trying to connect to the primary server 2) the primary server is restarted before the client times out The primary server would take the client connection as an event to turn into a master, unaware that the backup was still active. This patch adds a timeout - the primary server will not respond to clients until two heartbeats have passed, allowing time for the backup to notify the primary if it's active.