]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async/ProtocolV2: refuse incoming connection intended for someone else
authorSage Weil <sage@redhat.com>
Mon, 11 Feb 2019 15:29:30 +0000 (09:29 -0600)
committerSage Weil <sage@redhat.com>
Mon, 11 Feb 2019 15:29:30 +0000 (09:29 -0600)
commite399fc75141cd282182a1da381798c118ffcbb41
tree06f319740a6ca1c0ddf2c578a08ae049be4da1b2
parent400686efd900444f0e569c734f3247fe1a22822b
msg/async/ProtocolV2: refuse incoming connection intended for someone else

If we get a client_ident frame, and they are trying to talk to someone
else, drop the connection.

This is an inelegant workaround to http://tracker.ceph.com/issues/38247.
A nicer fix would be to restructure the protocol so that the client knows
who they connected to before they try to open a session.  That is a bigger
change that can follow...

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