From 785a37416c58fb6f86d3d89cbff240ce9f2d7e74 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Wed, 16 Dec 2015 18:12:10 +0100 Subject: [PATCH] Added Timeout in Response --- src/rest-api.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.16.6