Fix: Java agent: handle partial payload read
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 22 Apr 2020 17:30:40 +0000 (13:30 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 22 Apr 2020 18:19:43 +0000 (14:19 -0400)
commitc48dc6d8488a00952c793868a2dfcde55d903598
tree9cf3ba9f6ca19b1e6dc90323482963703621ded8
parent4ae3f13373ab43824ddca62d3482584a6296641d
Fix: Java agent: handle partial payload read

When reading from a TCP socket, there is no guarantee that the
read will return all the requested data. We need to loop and continue
reading until we gather all the expected data.

This fixes flakiness of the lttng-ust-java-tests.

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.024368 seconds and 4 git commands to generate.