src.ctf.lttng-live: live_..._list_sessions(): remove handshake
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 29 Jul 2019 16:25:42 +0000 (12:25 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 7 Aug 2019 18:05:20 +0000 (14:05 -0400)
commit9ddb2f836ff7f3af1e04aabbc04799efd014629d
tree606bac2765e14c740ecd2c202d4a7850aa06ca55
parentca06281dd1d7bfedf8756ebe888e6b4e190449b6
src.ctf.lttng-live: live_..._list_sessions(): remove handshake

The only user of live_viewer_connection_list_sessions() is
lttng_live_query_list_sessions() which calls
live_viewer_connection_create() before. live_viewer_connection_create()
calls lttng_live_connect_viewer() which calls lttng_live_handshake().

There is no need to call lttng_live_handshake() twice. This makes the
relay daemon assign two viewer IDs to the CLI, as seen in Wireshark.

Babeltrace 1.5 does not send the "connect" command twice either.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I640b9397c21ca37ad5c841415b5ed0c12193825a
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1798
src/plugins/ctf/lttng-live/viewer-connection.c
This page took 0.029737 seconds and 4 git commands to generate.