]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async/ProtocolV2: refuse incoming reconnect attempt intended for someone else 26365/head
authorSage Weil <sage@redhat.com>
Mon, 11 Feb 2019 17:02:28 +0000 (11:02 -0600)
committerSage Weil <sage@redhat.com>
Mon, 11 Feb 2019 17:02:28 +0000 (11:02 -0600)
commitbc7f567467812187f7df827737bfc4f9ef74e12e
tree9fd90db832e6d84f0bcd317f7eed4cc3e868f576
parente399fc75141cd282182a1da381798c118ffcbb41
msg/async/ProtocolV2: refuse incoming reconnect attempt intended for someone else

The same scenario that was possible on client_ident is also possible
for reconnect: on the accepting side we recognized the client_addrs
but the client is trying to reach someone else.  Since the cookie is a
random 64-bit value it is unlikely, but still possible, that we will
match an existing session that is not for the client.

Signed-off-by: Sage Weil <sage@redhat.com>
doc/dev/msgr2.rst
src/msg/async/ProtocolV2.cc