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)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 31 Jul 2019 21:18:07 +0000 (17:18 -0400)
commitbf7fe79ff0134fdcc2ae58427d4cce7190d5dbc1
tree4191706b04196bd0cdea56744cf5d3fd8807f1b2
parent550004b427608c43666ed59b552c37ea900ad6f8
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.024299 seconds and 4 git commands to generate.