[spp] [PATCH 1/4] shared: define interval time to retry connection

ogawa.yasufumi at lab.ntt.co.jp ogawa.yasufumi at lab.ntt.co.jp
Tue Jan 15 04:29:05 CET 2019


From: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>

This update is to define a common const `CONN_RETRY_USEC` for defining
interval time to retry connection in micro sec. The default value is
1,000,000 usec (= 1 sec).

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
---
 src/shared/common.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/shared/common.h b/src/shared/common.h
index cde013e..e244db9 100644
--- a/src/shared/common.h
+++ b/src/shared/common.h
@@ -23,6 +23,9 @@
 
 #define NO_FLAGS 0
 
+/* Interval time to retry connection. */
+#define CONN_RETRY_USEC (1000 * 1000)  /* micro sec */
+
 /*
  * When doing reads from the NIC or the client queues,
  * use this batch size
-- 
2.17.1



More information about the spp mailing list