Skip to content

Commit 3c725cc

Browse files
authored
Merge pull request #1848 from davidBar-On/issue-1847-second-fix-to-send-when-bitrate-limit-is-set
Extending PR #1821 fix to PR #1773 for sending when bitrate is set
2 parents 7b2af28 + d77d64e commit 3c725cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iperf_api.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,7 @@ iperf_send_mt(struct iperf_stream *sp)
20652065
}
20662066
#if defined(HAVE_CLOCK_NANOSLEEP) || defined(HAVE_NANOSLEEP)
20672067
/* Should check if green light can be set, as pacing timer is not supported in this case */
2068-
if (throttle_check && !throttle_check_per_message) {
2068+
if (throttle_check && (!throttle_check_per_message || message_sent == 0)) {
20692069
#else /* !HAVE_CLOCK_NANOSLEEP && !HAVE_NANOSLEEP */
20702070
if (!throttle_check_per_message || message_sent == 0) { /* Throttle check if was not checked for each send */
20712071
#endif /* HAVE_CLOCK_NANOSLEEP, HAVE_NANOSLEEP */

0 commit comments

Comments
 (0)