Send iperf info line by line rather than all at the end (#1240)

* Send iperf info line by line rather than all at the end

* Less newlines
This commit is contained in:
Tim Wilkinson 2024-06-09 10:08:14 -07:00 committed by GitHub
parent 2f74728693
commit 166cf0d742
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

@ -114,8 +114,15 @@ else
break break
end end
print("<html><head><title>SUCCESS</title></head>") print("<html><head><title>SUCCESS</title></head>")
print("<body><pre>Client: " .. node .. "\nServer: " .. server)
io.flush() io.flush()
print("<body><pre>Client: " .. node .. "\nServer: " .. server .. "\n" .. running:read("*a") .. "</pre></body></html>") for line in running:lines()
do
print(line)
io.flush()
end
running:close()
print("</pre></body></html>")
break break
end end
end end