1
1
iperf3/src
Hamid Anvari f4a114652f diskfile_send() sent data capped at file-size
Issue: `diskfile_send()` unconditional call to `sp->snd2`
would result in sending full buffer size everytime,
regardless of the file size.

Fix: The function updated to check for end-of-file (reading 0 bytes)
and,
1. set `sp->pending_size` to appropriate data length available to be sent
2. check for end condition and avoid sending data more than file size.

Note: The fix is only for the maximum cap on the data size sent on the network.
If other parameters (-t, -n, etc.) yield smaller size or shorter time then needed,
the file will still be partially sent to the network.
2021-04-16 14:55:02 -07:00
..
cjson.c enh: Update cJSON to 1.7.13 (#978) 2020-04-14 16:59:56 -07:00
cjson.h enh: Update cJSON to 1.7.13 (#978) 2020-04-14 16:59:56 -07:00
dscp.c fix hotn?, strcasecmp and timeval isn't defined error 2020-01-02 15:58:20 -08:00
flowlabel.h Update license and copyright text to conform to LBNL standards. 2014-09-29 14:00:46 -07:00
iperf3.1 enh: Wording fixes in various messages, document --rcv-timeout in manpage. 2021-02-26 13:49:00 -08:00
iperf_api.c diskfile_send() sent data capped at file-size 2021-04-16 14:55:02 -07:00
iperf_api.h enh: Add --rcv-timeout option (#1125) 2021-02-26 12:39:06 -08:00
iperf_auth.c Configurable value for time drift between client/server for authentication request issue1065 (#1070) 2020-11-11 17:27:47 -08:00
iperf_auth.h Configurable value for time drift between client/server for authentication request issue1065 (#1070) 2020-11-11 17:27:47 -08:00
iperf_client_api.c fix: Handle correctly some errors on initial client connect. (#1139) 2021-04-14 08:31:07 -07:00
iperf_config.h.in IP don't fragment support (#1119) 2021-02-16 14:28:54 -08:00
iperf_error.c enh: Wording fixes in various messages, document --rcv-timeout in manpage. 2021-02-26 13:49:00 -08:00
iperf_locale.c enh: Wording fixes in various messages, document --rcv-timeout in manpage. 2021-02-26 13:49:00 -08:00
iperf_locale.h enh: Support SO_BINDTODEVICE (#1097) 2020-12-22 15:52:24 -08:00
iperf_sctp.c enh: Support SO_BINDTODEVICE (#1097) 2020-12-22 15:52:24 -08:00
iperf_sctp.h Add -X to restrict SCTP binding to a subset of interfaces. 2015-01-05 15:19:57 -08:00
iperf_server_api.c fix: Handle correctly some errors on initial client connect. (#1139) 2021-04-14 08:31:07 -07:00
iperf_tcp.c fix: Handle correctly some errors on initial client connect. (#1139) 2021-04-14 08:31:07 -07:00
iperf_tcp.h Update license and copyright text to conform to LBNL standards. 2014-09-29 14:00:46 -07:00
iperf_time.c fix: Remove Linux-ism in clock_gettime(3). (#853) 2019-03-29 15:52:56 -07:00
iperf_time.h Add initial portable time abstraction 2018-05-17 14:09:52 +02:00
iperf_udp.c enh: Support SO_BINDTODEVICE (#1097) 2020-12-22 15:52:24 -08:00
iperf_udp.h Update license and copyright text to conform to LBNL standards. 2014-09-29 14:00:46 -07:00
iperf_util.c IP don't fragment support (#1119) 2021-02-16 14:28:54 -08:00
iperf_util.h chore: Change applicable function arguments from 'char *' to 'const char *' (#1006) 2020-06-12 10:03:30 -07:00
iperf.h enh: Add --rcv-timeout option (#1125) 2021-02-26 12:39:06 -08:00
libiperf.3 enh: Support SO_BINDTODEVICE (#1097) 2020-12-22 15:52:24 -08:00
main.c Issue 1118 (#1121) 2021-02-08 14:54:11 -08:00
Makefile.am Add tests for iperf_api functions. 2020-05-20 14:35:52 -07:00
Makefile.in enh: Support SO_BINDTODEVICE (#1097) 2020-12-22 15:52:24 -08:00
net.c fix: Remove the inclusion of tcp.h as it is included by iperf.h (#1122) 2021-02-25 08:22:10 -08:00
net.h enh: Support SO_BINDTODEVICE (#1097) 2020-12-22 15:52:24 -08:00
portable_endian.h Add Solaris 10 portable_endian.h (#711) 2018-03-09 10:28:48 -08:00
private.pem Add tests for iperf_api functions. 2020-05-20 14:35:52 -07:00
public.pem Add tests for iperf_api functions. 2020-05-20 14:35:52 -07:00
queue.h add queue.h from OpenBSD; use self contained queue.h from OpenBSD; fix indenting on previous commit 2010-09-08 20:35:47 +00:00
t_api.c feat(api): Provide API access to --commit-timeout. (#1001) 2020-05-19 07:37:18 -07:00
t_auth.c Add tests for iperf_api functions. 2020-05-20 14:35:52 -07:00
t_timer.c Add initial portable time abstraction 2018-05-17 14:09:52 +02:00
t_units.c Fix a problem formatting very large numbers. (#642) 2017-10-04 10:15:19 -07:00
t_uuid.c Update license and copyright text to conform to LBNL standards. 2014-09-29 14:00:46 -07:00
tcp_info.c ensure build_tcpinfo_message TCP_INFO check consistent with iperf_interval_results 2020-01-03 09:07:03 -08:00
timer.c Add initial portable time abstraction 2018-05-17 14:09:52 +02:00
timer.h fix hotn?, strcasecmp and timeval isn't defined error 2020-01-02 15:58:20 -08:00
units.c Fix a problem formatting very large numbers. (#642) 2017-10-04 10:15:19 -07:00
units.h Update license and copyright text to conform to LBNL standards. 2014-09-29 14:00:46 -07:00
version.h.in Update license and copyright text to conform to LBNL standards. 2014-09-29 14:00:46 -07:00