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:20:12 +0000 (14:20 -0400)
commit757cf67e7662260c88b7a5df15d099e18bd84af9
tree957d0a9853cca1c3dc766520e32674f5062150ad
parentc56a1f6866b3861526a43e27e1c9e9912b2b4b48
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.02659 seconds and 4 git commands to generate.