Fix: Wait for in-flight data before closing a stream
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 5 Sep 2015 02:04:12 +0000 (22:04 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Sep 2015 13:32:36 +0000 (09:32 -0400)
commita08107cc300e4f8ce59004d0027198e93191c3a1
tree05cfb955584b74a9beb12274401196bac06588ce
parenta12886a5728de2b48c895abb8a9799e111e8f40b
Fix: Wait for in-flight data before closing a stream

A stream's closing conditions are evaluated in three places:
    1) When a close command is received
    2) When the control connection owning it is closed
    3) The stream has received all of its data following
       a close request.

These checks are performed in try_stream_close().

A known downside of this approach is that a stream will never
be closed if it has not received all of its data.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/ctf-trace.c
src/bin/lttng-relayd/main.c
src/bin/lttng-relayd/session.c
src/bin/lttng-relayd/stream.c
src/bin/lttng-relayd/stream.h
This page took 0.026692 seconds and 4 git commands to generate.