net: apps: Make echo-client to timeout packet receive

The echo-client will timeout the packet receive after 5 seconds.
This way we at least send something instead of waiting forever
if the packet is lost.

Change-Id: Idc332965786797df4ed04dc8b3ef49af32a3f436
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2016-02-04 13:05:45 +02:00 committed by Anas Nashif
commit 5e16d7a355

View file

@ -147,8 +147,8 @@ static inline void reverse(unsigned char *buf, int len)
}
}
#if 0
#define WAIT_TIME 1
#if 1
#define WAIT_TIME 5
#define WAIT_TICKS (WAIT_TIME * sys_clock_ticks_per_sec)
#else
#define WAIT_TICKS TICKS_UNLIMITED