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 17:32:57 +0000 (13:32 -0400)
commit32974710aab75d01a8ae48d0be3641c2f56e45a9
tree0f7ce39594e83e05628510190676efe5639fd1d5
parentcf22367fec17f2b2650e637de84fc2f614e4d2ac
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.026054 seconds and 4 git commands to generate.