summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2016-02-04 13:05:45 +0200
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:25:32 -0500
commit5e16d7a3551f0c804311c519dd988626df3e94ff (patch)
treefe1818aeb035e3a638ad86950d711cdeb34aa80e /samples
parentdb0c12eece9980c7e7d8b5682ce6601c3c88d393 (diff)
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>
Diffstat (limited to 'samples')
-rw-r--r--samples/net/echo_client/src/echo-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/net/echo_client/src/echo-client.c b/samples/net/echo_client/src/echo-client.c
index fc19cd3e5..a1b8bd928 100644
--- a/samples/net/echo_client/src/echo-client.c
+++ b/samples/net/echo_client/src/echo-client.c
@@ -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