Closed BenjiZombie closed 8 years ago
Can you attach your results.bin in here for me to debug?
Thanks
If you attempt a shorter attack and let it finish -duration=5s
, does this still happen?
Unfortunately, yes:
PS C:\Temp> echo "GET https://www.google.com/" | ./vegeta attack -insecure -duration=5s | tee results2.bin | ./vegeta report
2016/10/26 09:51:10 extra data in buffer
I'm setting up a Windows VM to try to reproduce this.
Man, I can't even run a command on a Windows prompt. :-(
Are you on normal command prompt, Powershell or BASH with the latest Linux compatibility mode?
Using PowerShell
OK, the problem seems to be in the stdout / stdin in Powershell. Things seem to get corrupted with pipes and stdout redirection. Try this instead:
echo "GET https://www.google.com/" | ./vegeta attack -insecure -duration=2s -output="results.bin"
vegeta report -inputs="results.bin"
And this explains the why: https://brianreiter.org/2010/01/29/powershells-object-pipeline-corrupts-piped-binary-data/
This isn't a Vegeta problem, so closing this issue. Thanks for the report.
Hi,
extra data in buffer
It seems I can't generate any report (tried plot and the others as well) under Windows.
results.bin
file is 1MB in size.Have you had any success under Windows?
Thanks