Fix: Java agent: close session daemon socket on error
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 22 Apr 2020 18:05:41 +0000 (14:05 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 22 Apr 2020 18:16:59 +0000 (14:16 -0400)
commit35cbacdb34948e328f5d360f2fd76618dd678e2f
tree65a39ae894e3394e983db442544f82b2571719b5
parent0b7be275cc204aecb1f21884e33d7a1e4fa9023b
Fix: Java agent: close session daemon socket on error

When catching an error, close the socket used to communicate with the
session daemon rather than leaking it, before retrying to connect.

Also, when sleep is interrupted, there is no point in printing
out the stack trace. Just retry connection immediately.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/client/LttngTcpSessiondClient.java
This page took 0.025662 seconds and 5 git commands to generate.