iperf: prevent client infinite loop
authorEunBong Song <eunb.song@samsung.com>
Mon, 7 Aug 2017 02:05:23 +0000 (19:05 -0700)
committerEunBong Song <eunb.song@samsung.com>
Wed, 30 Aug 2017 04:15:49 +0000 (21:15 -0700)
commitafe69c4572a6947be305f27246f016dd39acf3f5
tree8246f654d78e5a4579abbb35818d7ca1afde658f
parent0597295414a5b7eb53c4736c931ca14ce925748f
iperf: prevent client infinite loop

Sometimes iperf client's write_set fds are never cleared and this can cause
infinite loop. This situation can happen when write_set is not cleared but
test's state is not running because clear write_set is only done in running
state. This patch adds clear write_set fds if test state is TEST_END and th
ere is not cleared write_fds and this can prevent infinite loop.

Change-Id: I3329fc1fa2454793ab2dfcd16eab177294fe3a31
Signed-off-by: EunBong Song <eunb.song@samsung.com>
apps/examples/iperf/iperf_client_api.c