Increase jvpp connection timeout 20/1420/3
authorMaros Marsalek <mmarsale@cisco.com>
Mon, 6 Jun 2016 13:34:54 +0000 (15:34 +0200)
committerChris Luke <chris_luke@cable.comcast.com>
Wed, 8 Jun 2016 11:40:32 +0000 (11:40 +0000)
Change-Id: I4d52c113336deac80dfcbad91b21a7a70eea2213
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
vpp-api/java/jvpp/jvpp.c

index 6cc0553..56c43c9 100644 (file)
@@ -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) {