diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:27:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:27:01 +0000 |
commit | 6f4c2968d9a035183d937cb055aec739c05280b1 (patch) | |
tree | 3e3270402258677b8ceb7f0db4c68e2123371d97 /src/iperf_client_api.c | |
parent | Adding upstream version 3.16. (diff) | |
download | iperf3-6f4c2968d9a035183d937cb055aec739c05280b1.tar.xz iperf3-6f4c2968d9a035183d937cb055aec739c05280b1.zip |
Adding upstream version 3.17.1.upstream/3.17.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/iperf_client_api.c')
-rw-r--r-- | src/iperf_client_api.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/iperf_client_api.c b/src/iperf_client_api.c index 5b33369..7ad4c93 100644 --- a/src/iperf_client_api.c +++ b/src/iperf_client_api.c @@ -614,7 +614,19 @@ iperf_run_client(struct iperf_test * test) timeout = &used_timeout; } +#if (defined(__vxworks)) || (defined(__VXWORKS__)) + if (timeout != NULL && timeout->tv_sec == 0 && timeout->tv_usec == 0) { + taskDelay (1); + } + + result = select(test->max_fd + 1, + &read_set, + (test->state == TEST_RUNNING && !test->reverse) ? &write_set : NULL, + NULL, + timeout); +#else result = select(test->max_fd + 1, &read_set, &write_set, NULL, timeout); +#endif // __vxworks or __VXWORKS__ if (result < 0 && errno != EINTR) { i_errno = IESELECT; goto cleanup_and_fail; |