Increase jvpp connection timeout
Change-Id: I4d52c113336deac80dfcbad91b21a7a70eea2213 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
This commit is contained in:

committed by
Chris Luke

parent
599839d12d
commit
2f0a7a880c
@ -133,8 +133,8 @@ JNIEXPORT jint JNICALL Java_org_openvpp_jvpp_VppJNIConnection_clientConnect
|
|||||||
M(CONTROL_PING, control_ping);
|
M(CONTROL_PING, control_ping);
|
||||||
S;
|
S;
|
||||||
|
|
||||||
// wait for results:
|
// wait for results: Current time + 10 seconds is the timeout
|
||||||
timeout = clib_time_now (&clib_time) + 1.0;
|
timeout = clib_time_now (&clib_time) + 10.0;
|
||||||
rv = VNET_API_ERROR_RESPONSE_NOT_READY;
|
rv = VNET_API_ERROR_RESPONSE_NOT_READY;
|
||||||
while (clib_time_now (&clib_time) < timeout) {
|
while (clib_time_now (&clib_time) < timeout) {
|
||||||
if (jm->result_ready == 1) {
|
if (jm->result_ready == 1) {
|
||||||
|
Reference in New Issue
Block a user