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:
parent
db0c12eece
commit
5e16d7a355
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue