History log of /iperf/src/iperf_server_api.c (Results 1 – 25 of 143)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 7bdd5b0e 20-Feb-2022 David Bar-On <[email protected]>

Fix for issue 1215 - add TCP option


Revision tags: 3.11
# 76bd67f6 28-Jan-2022 Sarah Larsen <[email protected]>

iperf-3.11 release engineering tasks.

Bump version number, update release notes, rename release notes and tweak
markup. Update copyright year.


# d5c85065 16-Dec-2021 Bruce A. Mah <[email protected]>

Force iperf3 server to exit if it can't open its log file.

Fixes #1225.


# e919e8c2 03-Sep-2021 a1346054 <[email protected]>

trim excess whitespace


# 775341de 02-Sep-2021 Mark Feit <[email protected]>

Exit if idle time expires waiting for a connection in one-off mode. #1187 (#1197)


Revision tags: 3.10.1, 3.10
# 1e33e721 14-Apr-2021 Bruce A. Mah <[email protected]>

fix: Handle correctly some errors on initial client connect. (#1139)

This is a mostly-cosmetic reimplementation of pull request #1128.

Original commit log:

Fix two issues that caused an active

fix: Handle correctly some errors on initial client connect. (#1139)

This is a mostly-cosmetic reimplementation of pull request #1128.

Original commit log:

Fix two issues that caused an active TCP test to terminate if a new
connection request was received while in streams creation phase.
One issue was in iperf_tcp_accept() - after identifying that the cookies
of the new connection if from a new client, error was returned which
caused the active test to terminate. The other issue was in
iperf_run_server() where congestion alg was set for the new client,
although the stream to it was already closed by iperf_tcp_accept().
That also cause the active test to terminate.

Another minor issue that was fixed is that after a client received a
failure state (negative state) from the server, iperf_client_end()
still tried to send back IPERF_DONE to the server. That caused the
client to issue failure message of "unable to send control message:
Connection reset by peer" instead of "the server is busy running a test".

Originally submitted by: @davidBar-On

show more ...


# 50638f60 13-Apr-2021 Bruce A. Mah <[email protected]>

fix: Follow-up commit for #1138 to fix a couple misspellings.

No functional changes.


# 27695dc4 13-Apr-2021 David Bar-On <[email protected]>

enh: do not fail when new connection is refused during a running test (#1138)

Fixes #1135.


# 53a68308 15-Mar-2021 David Bar-On <[email protected]>

Fix issue 1061 - not fail in WSL1 when cannot get default congestion alg name (#1126)


# de006004 26-Feb-2021 Bruce A. Mah <[email protected]>

enh: Wording fixes in various messages, document --rcv-timeout in manpage.

Follow-up to #1123.

Pet copyrights where appropriate.


# 8ffe72e2 26-Feb-2021 David Bar-On <[email protected]>

enh: Add --rcv-timeout option (#1125)

Enhancement to PR #1101 - add --rcv-timeout option to allow setting the timeout for receiving packet from the sender in a running test, instead of the constant

enh: Add --rcv-timeout option (#1125)

Enhancement to PR #1101 - add --rcv-timeout option to allow setting the timeout for receiving packet from the sender in a running test, instead of the constant 120 seconds set in #1101. This is to allow short timeout, so the server will not be "busy" for long time doing nothing. Also, the resolution is set to ms (with minimum of 100ms), as at least in fast networks that may be required.

Since both the server and the client can be a sender, the option is allowed for both. The server setting is for all tests - the client is not sending its --rcv-timeout setting to the server.

While changing the help message, few printf constants from other help lines were changed to parameters.

show more ...


# 25f50c23 08-Feb-2021 Bruce A. Mah <[email protected]>

Issue 1118 (#1121)

* fix: Correctly emit JSON for --server --json.

Put extra error diagnostic information behind --verbose, to avoid putting
extra "error" members in JSON output.

Fixes #1118.


# be66b575 02-Feb-2021 David Bar-On <[email protected]>

Server select timeout to prevent server to get stuck because of client or network errors (#1101)


# ce010040 15-Jan-2021 Bruce A. Mah <[email protected]>

fix: Minor memory leak with -P. (#1103)

For every new connection we saved the name of the congestion
control algorithm, but if there were multiple connections we'd
leak all but the last name.

F

fix: Minor memory leak with -P. (#1103)

For every new connection we saved the name of the congestion
control algorithm, but if there were multiple connections we'd
leak all but the last name.

Fixes #1100.

show more ...


# 21581a72 22-Dec-2020 Bruce A. Mah <[email protected]>

enh: Support SO_BINDTODEVICE (#1097)

This lets iperf work better with multi-homed machines and
VRF.

Fixes #1089.

Based on a patch by Ben Greear <[email protected]> via PR #817.

Co-au

enh: Support SO_BINDTODEVICE (#1097)

This lets iperf work better with multi-homed machines and
VRF.

Fixes #1089.

Based on a patch by Ben Greear <[email protected]> via PR #817.

Co-authored-by: Ben Greear <[email protected]>

show more ...


# aeb0b3db 16-Dec-2020 jtluka <[email protected]>

iperf_server_api: start calculating CPU utilization right before TEST_START (#1077)

Fixes issue 1076.

Signed-off-by: Jan Tluka <[email protected]>


# 50315e7a 04-Dec-2020 David Bar-On <[email protected]>

Closing server prot_listener socket after stream setup failure (#1084)

Making sure the server closes prot_listener socket at the end of a session with a client. Without this change the socket may re

Closing server prot_listener socket after stream setup failure (#1084)

Making sure the server closes prot_listener socket at the end of a session with a client. Without this change the socket may remain open, for example when there is a failure during the UDP stream establishment because the --window value is too high. Closing the socket was added to cleanup_server() as it seems to handle all cases where the socket may remain open.

show more ...


# 97a1d11a 26-Oct-2020 Bruce A. Mah <[email protected]>

enh: Set TCP_NODELAY on control connections. Reimplementation of #1046. (#1063)

The goal is to improve the responsiveness and/or reliability of
messages on the control connection, particularly in

enh: Set TCP_NODELAY on control connections. Reimplementation of #1046. (#1063)

The goal is to improve the responsiveness and/or reliability of
messages on the control connection, particularly in cases where the
test traffic fills up the path between client and server.

Originally suggested and implemented by @andrepuschmann, this version
adds some error-checking and a version for the client side as well as
the server.

Fixes #1045.

show more ...


Revision tags: 3.9
# 223da980 10-Jul-2020 Bruce A. Mah <[email protected]>

Issue 999 follow up (#1025)

* doc: Add manpage text for --server-bitrate-limit.

While here, normalize the manpage text for all command-line options
that take [KMGT] scaling suffixes (there were

Issue 999 follow up (#1025)

* doc: Add manpage text for --server-bitrate-limit.

While here, normalize the manpage text for all command-line options
that take [KMGT] scaling suffixes (there were about three different
strings in use).

* doc: Bump manpage date.

* fix: Fix printf format string warnings on macOS.

* fix: Fix compatibility definition of PRIu64 in iperf_udp.c to match iperf.h.

show more ...


# a0c6f0ec 10-Jul-2020 David Bar-On <[email protected]>

feat: Issue #937 - Add a server option to limit total allowed throughput (#999)


Revision tags: 3.8.1, 3.8, 3.7
# 098dd3cc 06-Mar-2019 Andrew Cooks <[email protected]>

delay tearing down tcp control connections

The TEST_END message is racing with the server_timer_proc timer.
When the RTT is higher than a second, the timer wins the race
and closes the control socke

delay tearing down tcp control connections

The TEST_END message is racing with the server_timer_proc timer.
When the RTT is higher than a second, the timer wins the race
and closes the control socket before the results are exchanged.

This results in the client reporting:
"error - control socket has closed unexpectedly"
as reported in GH issue 751.

This change doesn't prevent the race, but significantly increases the
grace period based on a maximum RTT of 4 seconds and accounts for
the ten transitions in the iperf3 state machine.

(cherry picked from commit 34bdddb75194e880e6dbc6dcaa5b5386975c11b3)
(originally submitted by @acooks in #859)

show more ...


# 255a9c71 05-Jun-2019 srgnk <[email protected]>

enh: Introduce iperf_set_test_logfile API function (#871)

To be able to set the test->outfile to a different file other than default
if using libiperf API.

Since logfile is now opened in iperf_p

enh: Introduce iperf_set_test_logfile API function (#871)

To be able to set the test->outfile to a different file other than default
if using libiperf API.

Since logfile is now opened in iperf_parse_arguments() and this function
may not be used if running iperf using API, define a dedicated function
iperf_open_logfile() and move the opening of logfile into
iperf_run_client() and iperf_run_server() to make sure logfile will be
opened if iperf_parse_arguments() was not called.

show more ...


# 0778f04c 13-Dec-2018 Boris Okunev <[email protected]>

Bidirect mode implementation (#780)

Adds the `--bidir` flag to support simultaneous two-way tests.

Submitted by @LikHait. Fixes #201.


# af34c411 17-Sep-2018 Bruce A. Mah <[email protected]>

Flush (if appropriate) after a server-side message where we weren't before. (#795)

Also fix some stupid looking code and update a copyright.
Fixes #790.


Revision tags: 3.6
# cde81d76 16-May-2018 Ben Fox-Moore <[email protected]>

Add initial portable time abstraction


123456