我正在尝试将 iperf 与基于 Qt 的 GUI 集成,但是当我通过单击按钮事件调用的方法运行 iper_run_client() 时_"资源暂时不可用"_ 错误在汇总数据之后被抛出。
---------------------------------------------------
Server listening on 1234
---------------------------------------------------
Accepted connection from 127.0.0.1, port 55132
[ 5] local 127.0.0.1 port 1234 connected to 127.0.0.1 port 55134
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 2.16 GBytes 18.6 Gbits/sec (omitted)
[ 5] 1.00-2.00 sec 2.23 GBytes 19.2 Gbits/sec (omitted)
[ 5] 2.00-3.00 sec 2.37 GBytes 20.4 Gbits/sec (omitted)
[ 5] 0.00-1.00 sec 2.25 GBytes 19.4 Gbits/sec
[ 5] 1.00-2.00 sec 2.23 GBytes 19.1 Gbits/sec
[ 5] 2.00-3.00 sec 2.24 GBytes 19.3 Gbits/sec
[ 5] 3.00-4.00 sec 2.33 GBytes 20.0 Gbits/sec
[ 5] 4.00-5.00 sec 2.28 GBytes 19.6 Gbits/sec
[ 5] 5.00-5.04 sec 99.4 MBytes 20.5 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-5.04 sec 0.00 Bytes 0.00 bits/sec sender
[ 5] 0.00-5.04 sec 11.4 GBytes 19.5 Gbits/sec receiver
iperf3: error - unable to receive results: Resource temporarily unavailable
这个问题的可能原因是什么? 它可能是由与 Qt 的信号/插槽机制相关的东西产生的吗?
预先感谢您的答复。
我完全不知道。 但是,如果社区中有人有想法,请将此问题悬而未决。
感谢你的回复。
我试图通过将相同的代码放在一个“纯”C++ 项目中来解决,它没有问题,所以我认为这绝对是一个 Qt 相关的问题。
无论如何,如果有人遇到和我一样的问题,我会保留这个问题。
好的,我要结束这个问题,因为我们没有其他事情要做。 如果人们搜索它,它仍然应该显示出来。 问题跟踪器不是问题和答案的存档,它实际上更多的是我们应该考虑改进 iperf3 的事情的列表。
我遇到了这个问题,我的情况是 iperf 版本之间的差异。
你好,
我仍然看到这个问题,并确保双方都运行相同的版本。 当我尝试绑定到接口以能够设置源端口时会发生这种情况:
iperf3 -c
iperf 3.1.3
ubuntu18.4 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64
iperf3:错误 - 无法连接到服务器:
这有效:
iperf3 -c
服务器运行如下:
iperf3 -s -p
iperf3 版本:
iperf 3.1.3
Linux bench08-pc01.ste.atl.lab.test 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64
可用的可选功能:CPU 亲和性设置、IPv6 流标签、TCP 拥塞算法设置、sendfile / zerocopy、socket pacing
谢谢,