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:19:43 +0000 (14:19 -0400)
commit7847c7e43259dccd8cc8587abd340248328cbd86
treef20111b23caed5aba506f3855714e1333a5a807f
parentc48dc6d8488a00952c793868a2dfcde55d903598
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.024167 seconds and 5 git commands to generate.