Skip to content

Commit

Permalink
Completely remove serevr write_set per comment received
Browse files Browse the repository at this point in the history
  • Loading branch information
davidBar-On committed May 10, 2024
1 parent e396362 commit fcf1c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iperf_server_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ iperf_run_server(struct iperf_test *test)
#if defined(HAVE_TCP_CONGESTION)
int saved_errno;
#endif /* HAVE_TCP_CONGESTION */
fd_set read_set, write_set;
fd_set read_set;
struct iperf_stream *sp;
struct iperf_time now;
struct iperf_time last_receive_time;
Expand Down Expand Up @@ -576,7 +576,7 @@ iperf_run_server(struct iperf_test *test)
timeout = &used_timeout;
}

result = select(test->max_fd + 1, &read_set, &write_set, NULL, timeout);
result = select(test->max_fd + 1, &read_set, NULL, NULL, timeout);
if (result < 0 && errno != EINTR) {
cleanup_server(test);
i_errno = IESELECT;
Expand Down

0 comments on commit fcf1c46

Please sign in to comment.