From: Fulup Ar Foll Date: Wed, 16 Dec 2015 17:12:10 +0000 (+0100) Subject: Added Timeout in Response X-Git-Tag: blowfish_2.0.1~345 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=785a37416c58fb6f86d3d89cbff240ce9f2d7e74;p=src%2Fapp-framework-binder.git Added Timeout in Response --- diff --git a/src/rest-api.c b/src/rest-api.c index cc2198df..06b6ea87 100644 --- a/src/rest-api.c +++ b/src/rest-api.c @@ -203,6 +203,7 @@ STATIC AFB_error callPluginApi(AFB_plugin *plugin, AFB_request *request, void *c } else { json_object_object_add(jcall, "uuid", json_object_new_string (request->client->uuid)); json_object_object_add(jcall, "token", json_object_new_string (request->client->token)); + json_object_object_add(jcall, "timeout", json_object_new_int (request->config->cntxTimeout)); } break; @@ -217,6 +218,7 @@ STATIC AFB_error callPluginApi(AFB_plugin *plugin, AFB_request *request, void *c } else { json_object_object_add(jcall, "uuid", json_object_new_string (request->client->uuid)); json_object_object_add(jcall, "token", json_object_new_string (request->client->token)); + json_object_object_add(jcall, "timeout", json_object_new_int (request->config->cntxTimeout)); } break;