You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: The iperf3 issue tracker is for registering bugs, enhancement
requests, or submissions of code. It is not a means for asking
questions about building or using iperf3. Those are best directed
towards the iperf3 mailing list at iperf-dev@googlegroups.com or
question sites such as Stack Overflow
(http://www.stackoverflow.com/). A list of frequently-asked questions
regarding iperf3 can be found at http://software.es.net/iperf/faq.html.
Context
Version of iperf3:3.10.1
Hardware: Intel(R) Core(TM) i5-6300U CPU
Operating system (and distribution, if any): Vm Ubuntu 16.04
Please note: iperf3 is supported on Linux, FreeBSD, and macOS.
Support may be provided on a best-effort basis to other UNIX-like
platforms. We cannot provide support for building and/or running
iperf3 on Windows, iOS, or Android.
Other relevant information (for example, non-default compilers,
libraries, cross-compiling, etc.):
Please fill out one of the "Bug Report" or "Enhancement Request"
sections, as appropriate.
But the program never passes the if ( iperf_run_client( test ) < 0 ) line and exits with printout
iperf3: error - unable to connect to server: Name or service not known
I also put the code inside a try catch but there was no difference.
The same happens when the connection is rejected.
Since it's crucial for my app to handle the errors what else can I do ?
Expected Behavior
I assumed that the code inside the above if will be executed.
Actual Behavior
The code exits just after the if ( iperf_run_client( test ) < 0 ) line
Steps to Reproduce
./binary speedtest 5209 -> for the wrong host case
./binary iperf.par2.as49434.net 9200 -> for the connection refused case
Possible Solution
Please submit patches or code changes as a pull request.
Enhancement Request
Current behavior
Desired behavior
Implementation notes
If submitting a proposed implementation of an enhancement request,
please use the pull request mechanism.
The text was updated successfully, but these errors were encountered:
dk1301
changed the title
When error occurs then the negative case of iperf_run_client function of libiperf is not executed
When errors occurs then the negative case of iperf_run_client function of libiperf is not executed
Sep 17, 2021
bmah888
changed the title
When errors occurs then the negative case of iperf_run_client function of libiperf is not executed
When errors occurs, iperf_run_client exits instead of returning
Sep 17, 2021
NOTE: The iperf3 issue tracker is for registering bugs, enhancement
requests, or submissions of code. It is not a means for asking
questions about building or using iperf3. Those are best directed
towards the iperf3 mailing list at iperf-dev@googlegroups.com or
question sites such as Stack Overflow
(http://www.stackoverflow.com/). A list of frequently-asked questions
regarding iperf3 can be found at http://software.es.net/iperf/faq.html.
Context
Version of iperf3:3.10.1
Hardware: Intel(R) Core(TM) i5-6300U CPU
Operating system (and distribution, if any): Vm Ubuntu 16.04
Please note: iperf3 is supported on Linux, FreeBSD, and macOS.
Support may be provided on a best-effort basis to other UNIX-like
platforms. We cannot provide support for building and/or running
iperf3 on Windows, iOS, or Android.
libraries, cross-compiling, etc.):
Please fill out one of the "Bug Report" or "Enhancement Request"
sections, as appropriate.
Bug Report
I compiled the misc.c example of libiperf
Then I run the binary on purpose with erroneous host so as to check the code
But the program never passes the
if ( iperf_run_client( test ) < 0 )
line and exits with printoutiperf3: error - unable to connect to server: Name or service not known
I also put the code inside a try catch but there was no difference.
The same happens when the connection is rejected.
Since it's crucial for my app to handle the errors what else can I do ?
Expected Behavior
I assumed that the code inside the above if will be executed.
Actual Behavior
The code exits just after the
if ( iperf_run_client( test ) < 0 )
lineSteps to Reproduce
./binary speedtest 5209 -> for the wrong host case
./binary iperf.par2.as49434.net 9200 -> for the connection refused case
Please submit patches or code changes as a pull request.
Enhancement Request
Current behavior
Desired behavior
Implementation notes
If submitting a proposed implementation of an enhancement request,
please use the pull request mechanism.
The text was updated successfully, but these errors were encountered: