]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msgr: adjust nonce on rebind()
authorSage Weil <sage@inktank.com>
Tue, 16 Jul 2013 23:25:28 +0000 (16:25 -0700)
committerSage Weil <sage@inktank.com>
Wed, 17 Jul 2013 21:38:57 +0000 (14:38 -0700)
commit994e2bf224ab7b7d5b832485ee14de05354d2ddf
treedf6c38f6334d0849f2513111962901504c7ce776
parent07a0860a1899c7353bb506e33de72fdd22b857dd
msgr: adjust nonce on rebind()

We can have a situation where:

 - we have a pipe to a peer
 - pipe goes to standby (on peer)
 - we rebind to a new port
 - ....
 - we rebind again to the same old port
 - we connect to peer

and get reattached to the ancient pipe from two instances back.  Avoid that
by picking a new nonce each time we rebind.

Add 1,000,000 each time so that the port is still legible in the printed
output.

Signed-off-by: Sage Weil <sage@inktank.com>
src/msg/Accepter.cc