Fix: reply to version check even on protocol mismatch
authorJulien Desfossez <jdesfossez@efficios.com>
Wed, 14 Feb 2018 21:32:45 +0000 (16:32 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 20 Feb 2018 00:54:11 +0000 (19:54 -0500)
commit40096142f5428ba357fc69e6a9a1330c72ac7e5e
tree81d66b904983aed2de049b81326812ad7b27e02d
parent3071c8c75ca3095d53f345cc7251c72c4aeedbd8
Fix: reply to version check even on protocol mismatch

In the relay, we currently put() the connection when we detect that
the major version from the session daemon is not compatible. We don't
reply to the version check message. The relay still holds a reference
on the connection so it is not closed and the session daemon is left
blocking in recvmsg.

The relay now replies to the version check so the session daemon knows
it is not compatible, and the relay completely closes the connection on
its side and removes the FD from the poll set.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c
This page took 0.0267 seconds and 5 git commands to generate.