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:05 +0000 (19:54 -0500)
commitb28f7baa20013dcc2098ab072f72623360f8d6f9
tree8552684be063764d121257f2341ec37e51cba868
parent84a1ef69143f198278fb8fc2cf66dcd1da82a70e
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.024725 seconds and 4 git commands to generate.