aboutsummaryrefslogtreecommitdiffstats
path: root/vpp-api
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-06-06 15:34:54 +0200
committerChris Luke <chris_luke@cable.comcast.com>2016-06-08 11:40:32 +0000
commit2f0a7a880cece8d3f464be0e481089c6db562fdc (patch)
tree0241e94eba8810290b8eadf04298692ae67f24b1 /vpp-api
parent599839d12d13ffed46717256d2f4ec190ff798fc (diff)
Increase jvpp connection timeout
Change-Id: I4d52c113336deac80dfcbad91b21a7a70eea2213 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'vpp-api')
-rw-r--r--vpp-api/java/jvpp/jvpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vpp-api/java/jvpp/jvpp.c b/vpp-api/java/jvpp/jvpp.c
index 6cc05530d37..56c43c9b272 100644
--- a/vpp-api/java/jvpp/jvpp.c
+++ b/vpp-api/java/jvpp/jvpp.c
@@ -133,8 +133,8 @@ JNIEXPORT jint JNICALL Java_org_openvpp_jvpp_VppJNIConnection_clientConnect
M(CONTROL_PING, control_ping);
S;
- // wait for results:
- timeout = clib_time_now (&clib_time) + 1.0;
+ // wait for results: Current time + 10 seconds is the timeout
+ timeout = clib_time_now (&clib_time) + 10.0;
rv = VNET_API_ERROR_RESPONSE_NOT_READY;
while (clib_time_now (&clib_time) < timeout) {
if (jm->result_ready == 1) {