同步操作将从 src-openEuler/iperf3 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 7bd583d323950071e6ad05eb6c72a45a786fb126 Mon Sep 17 00:00:00 2001From: jiangjixiang <jiangjixiang@kylinos.cn>Date: Mon, 9 Sep 2024 17:54:25 +0800Subject: [PATCH 4/4] Avoid duplicate thread recycling.At the end of the test, the traffic thread has been reclaimed.If there is an exception in the control connection, it will causethe thread to be reclaimed repeatedly.Use sp->done to avoid repeated thread recycling.---src/iperf_client_api.c | 3 +++1 file changed, 3 insertions(+)diff --git a/src/iperf_client_api.c b/src/iperf_client_api.cindex 7c22cad..6d8eee2 100644--- a/src/iperf_client_api.c+++ b/src/iperf_client_api.c@@ -798,6 +798,9 @@ iperf_run_client(struct iperf_test * test)/* Cancel all outstanding threads */i_errno_save = i_errno;SLIST_FOREACH(sp, &test->streams, streams) {+ if (sp->done) {+ continue;+ }sp->done = 1;int rc;rc = pthread_cancel(sp->thr);--2.25.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。