Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libiperf hanging with tests over 100s #1648

Open
Shaun-3adesign opened this issue Feb 8, 2024 · 2 comments
Open

libiperf hanging with tests over 100s #1648

Shaun-3adesign opened this issue Feb 8, 2024 · 2 comments

Comments

@Shaun-3adesign
Copy link

Shaun-3adesign commented Feb 8, 2024

Context

when using libiperf to run a test the test never returns if the duration 100 seconds, traffic is generated but results are never returned.

  • Version of iperf3: 3.1.3, 3.9, 3.14 and 3.16

  • Operating system (and distribution, if any): ubuntu 20.04 and 22.04

Bug Report

using libiperf to run a test greater than 100s causes it to hang after sending data, running iperf3 from a command line works fine

  • Expected Behavior
    expect the call to run_client_test to return the json output

  • Actual Behavior
    the call never returns

  • Steps to Reproduce
    run a tcp test with a duration over 100s and json enabled

  • Debugging
    digging into this it actually get stuck doing the following
    file: iperf/src/iperf_api.c
    function: iperf_json_finish
    line: 4885 fprintf(test->outfile, "%s\n", test->json_output_string);

it just never returns, but I was able to print out test->json_output_string to a file before calling it
also if I set the log file before running the test it completes without issue

python wrapper where initial issue was seen thiezn/iperf3-python#53

@bmah888
Copy link
Contributor

bmah888 commented Feb 9, 2024

Couple questions:

  1. What happens if you don't enable JSON output and just get the default human-readable output?
  2. What's the network like between the client and the server? In particular, any chance there's some kind of stateful firewall in between?

@Shaun-3adesign
Copy link
Author

Shaun-3adesign commented Feb 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants