mirror of https://github.com/aredn/aredn.git
Limit buffer size of iperf3 test to 1K (#1094)
This is a workaround for a bug where iperf3 will just block randomly and no longer send data. It may effect the absolute performance measurements compared to the default buffer value although I didnt see that in my testing
This commit is contained in:
parent
a09ac6ed1a
commit
a810b3b63b
|
@ -75,7 +75,7 @@ else
|
|||
f:close()
|
||||
end
|
||||
if status:match("running") then
|
||||
print("<html><head><title>SUCCESS</title></head><body><pre>Client: " .. node .. "\nServer: " .. server .. "\n" .. io.popen("p=$$;setsid sh -c \"(sleep 20; kill $p)\" > /dev/null 2>&1 & /usr/bin/iperf3 --forceflush -b 0 -Z -c " .. server .. (protocol == "udp" and " -u" or "") .. " 2>&1"):read("*a") .. "</pre></body></html>")
|
||||
print("<html><head><title>SUCCESS</title></head><body><pre>Client: " .. node .. "\nServer: " .. server .. "\n" .. io.popen("p=$$;setsid sh -c \"(sleep 20; kill $p)\" > /dev/null 2>&1 & /usr/bin/iperf3 --forceflush -b 0 -Z -c " .. server .. (protocol == "udp" and " -u" or "") .. " -l 1K 2>&1"):read("*a") .. "</pre></body></html>")
|
||||
elseif status:match("iperf is disabled") then
|
||||
print("<html><head><title>SERVER DISABLED</title></head><body><pre>iperf server is disabled</pre></body></html>")
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue