]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msgr: mark_down_all() after, not before, rebind
authorSage Weil <sage@inktank.com>
Tue, 16 Jul 2013 00:10:23 +0000 (17:10 -0700)
committerSage Weil <sage@inktank.com>
Wed, 24 Jul 2013 23:20:36 +0000 (16:20 -0700)
commitf938a5bf604885ffba65a9b86e19258ca254e58c
treeb9e239ba7e58036e872f30f2536db8286953ec48
parent07b9ebf4212d53606ce332ff927a2ff68ed26978
msgr: mark_down_all() after, not before, rebind

If we are shutting down all old connections and binding to new ports,
we want to avoid a sequence like:

 - close all prevoius connections
 - new connection comes in on old port
 - rebind to new ports
 -> connection from old port leaks through

As a first step, close all connections after we shut down the old
accepter and before we start the new one.

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 07a0860a1899c7353bb506e33de72fdd22b857dd)

Conflicts:

src/msg/SimpleMessenger.cc
src/msg/SimpleMessenger.cc