Code Review
/
src
/
app-framework-binder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
|
inline
| side by side (parent:
662faf4
)
Added Timeout in Response
author
Fulup Ar Foll
<fulup@iot.bzh>
Wed, 16 Dec 2015 17:12:10 +0000
(18:12 +0100)
committer
Fulup Ar Foll
<fulup@iot.bzh>
Wed, 16 Dec 2015 17:12:10 +0000
(18:12 +0100)
src/rest-api.c
patch
|
blob
|
history
diff --git
a/src/rest-api.c
b/src/rest-api.c
index
cc2198d
..
06b6ea8
100644
(file)
--- 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));
} 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;
}
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));
} 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;
}
break;