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:53:17 +0000 (19:53 -0500)
commit87cb6359367c96a7a63a3a5d18de878fd818d713
tree8497d1cc5513260630fe34d56568245079b8b577
parent67d5aa2855e526af41a75754f99a70c281936636
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.0272 seconds and 5 git commands to generate.