iperf: prevent client infinite loop
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 <1a7e7e98e070490e67aa35ab67fbf9fdda8f48ac@samsung.com>

yashwanth686007/TizenRTOS,JeonginKim/TizenRT,HONGCHAEHEE/TizenRT,junmin-kim/TizenRT,davidfather/TizenRT,Parkjihooni6186/TizenRT,junmin-kim/TizenRT,sunghan-chang/TizenRT,yashwanth686007/TizenRTOS,pillip8282/TizenRT,JeonginKim/TizenRT,sangwon03/TizenRT,an4967/TizenRT,jeongchanKim/TizenRT,chanijjani/TizenRT,btheosam/TizenRT,shivgarg/TizenRT,jeongchanKim/TizenRT,sunghan-chang/TizenRT,lokeshbv/TizenRT,JeonginKim/TizenRT,heejin-kim/TizenRT,lokeshbv/TizenRT,jeongarmy/TizenRT,Samsung/TizenRT,heejin-kim/TizenRT,chanijjani/TizenRT,pillip8282/TizenRT,jsdosa/TizenRT,jsdosa/TizenRT,shivgarg/TizenRT,Samsung/TizenRT,yashwanth686007/TizenRTOS,HONGCHAEHEE/TizenRT,btheosam/TizenRT,JeonginKim/TizenRT,davidfather/TizenRT,jeongchanKim/TizenRT,Parkjihooni6186/TizenRT,JeonginKim/TizenRT,davidfather/TizenRT,sunghan-chang/TizenRT,pillip8282/TizenRT,btheosam/TizenRT,jsdosa/TizenRT,sunghan-chang/TizenRT,pillip8282/TizenRT,jsdosa/TizenRT,jeongarmy/TizenRT,jeongarmy/TizenRT,JeonginKim/TizenRT,sangwon03/TizenRT,btheosam/TizenRT,Parkjihooni6186/TizenRT,heejin-kim/TizenRT,jeongchanKim/TizenRT,yashwanth686007/TizenRTOS,lokeshbv/TizenRT,sunghan-chang/TizenRT,Samsung/TizenRT,jsdosa/TizenRT,sunghan-chang/TizenRT,jeongchanKim/TizenRT,btheosam/TizenRT,chanijjani/TizenRT,chanijjani/TizenRT,chanijjani/TizenRT,jeongarmy/TizenRT,jeongarmy/TizenRT,yashwanth686007/TizenRTOS,jeongchanKim/TizenRT,jeongarmy/TizenRT,junmin-kim/TizenRT,Samsung/TizenRT,heejin-kim/TizenRT,JeongJunSik/TizenRT,davidfather/TizenRT,JeongJunSik/TizenRT,HONGCHAEHEE/TizenRT,Parkjihooni6186/TizenRT,shivgarg/TizenRT,junmin-kim/TizenRT,shivgarg/TizenRT,JeongJunSik/TizenRT,lokeshbv/TizenRT,sangwon03/TizenRT,sangwon03/TizenRT,Samsung/TizenRT,an4967/TizenRT,Samsung/TizenRT,sangwon03/TizenRT,JeongJunSik/TizenRT,lokeshbv/TizenRT,junmin-kim/TizenRT,shivgarg/TizenRT,heejin-kim/TizenRT,an4967/TizenRT,jsdosa/TizenRT,an4967/TizenRT,HONGCHAEHEE/TizenRT,an4967/TizenRT,davidfather/TizenRT,shivgarg/TizenRT,pillip8282/TizenRT,HONGCHAEHEE/TizenRT,sunghan-chang/TizenRT,davidfather/TizenRT,lokeshbv/TizenRT,heejin-kim/TizenRT,Parkjihooni6186/TizenRT,Samsung/TizenRT,sangwon03/TizenRT,davidfather/TizenRT,junmin-kim/TizenRT,pillip8282/TizenRT,HONGCHAEHEE/TizenRT,an4967/TizenRT,jsdosa/TizenRT,chanijjani/TizenRT,Parkjihooni6186/TizenRT,an4967/TizenRT,pillip8282/TizenRT,chanijjani/TizenRT,JeongJunSik/TizenRT,jeongarmy/TizenRT,junmin-kim/TizenRT,yashwanth686007/TizenRTOS,btheosam/TizenRT,JeongJunSik/TizenRT,jeongchanKim/TizenRT