From: Mathieu Desnoyers Date: Wed, 9 Sep 2015 15:56:34 +0000 (-0400) Subject: Fix: relayd: handle consumerd crashes without leak X-Git-Tag: v2.8.0-rc1~360 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=3d07a857948f868354589ff742b0a2f6277f558f;hp=3d07a857948f868354589ff742b0a2f6277f558f;p=lttng-tools.git Fix: relayd: handle consumerd crashes without leak We can be clever about indexes partially received in cases where we received the data socket part, but not the control socket part: since we're currently closing the stream on behalf of the control socket, we *know* there won't be any more control information for this socket. Therefore, we can destroy all indexes for which we have received only the file descriptor (from data socket). This takes care of consumerd crashes between sending the data and control information for a packet. Since those are sent in that order, we take care of consumerd crashes. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---