summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2026-11-08 16:46:47 +0800
committersakumisu <[email protected]>2026-11-08 16:46:54 +0800
commitcffeac73323c8ca2e1ae9335e5fe35c498cccbb6 (patch)
treefc699d73935cc63b101a5d23065d55efd1c7e46d
parent1cf7193676584a0c2bbfa53bf88b13b65a063130 (diff)
fix(ci): fix iperf last return
Signed-off-by: sakumisu <[email protected]>
-rw-r--r--tests/hpmicro/src/iperf/iperf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/hpmicro/src/iperf/iperf.c b/tests/hpmicro/src/iperf/iperf.c
index a7e1fa8f..e3483e76 100644
--- a/tests/hpmicro/src/iperf/iperf.c
+++ b/tests/hpmicro/src/iperf/iperf.c
@@ -195,6 +195,9 @@ static void socket_recv(int recv_socket, struct sockaddr_storage listen_addr, ui
iperf_show_socket_error_reason(error_log, recv_socket);
s_iperf_ctrl.finish = true;
break;
+ } else if (actual_recv == 0 && type == IPERF_TRANS_TYPE_TCP) {
+ /* EOF: the client finished the timed test and closed normally. */
+ break;
} else {
if (iperf_recv_start) {
iperf_start_report();