summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2015-12-16 18:12:10 +0100
committerFulup Ar Foll <fulup@iot.bzh>2015-12-16 18:12:10 +0100
commit785a37416c58fb6f86d3d89cbff240ce9f2d7e74 (patch)
tree2a227355a2e21bc5fc74720c63f52bc5bb65da0d
parent662faf40f0c11536afcaa7e2ff0969f247ae4965 (diff)
Added Timeout in Response
-rw-r--r--src/rest-api.c2
1 files changed, 2 insertions, 0 deletions
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;