X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-hreq.c;h=e146bcb4ba2c24c3448f2abba0677fdfc75943aa;hb=dde70b62b09f49ad672c104a3f81714bf11047be;hp=58dbb04ea2339fb42992bb9fa9ebfd50ec4fd263;hpb=bbe18a624f4961165cf52d7f4c25de6f3a7ec012;p=src%2Fapp-framework-binder.git diff --git a/src/afb-hreq.c b/src/afb-hreq.c index 58dbb04e..e146bcb4 100644 --- a/src/afb-hreq.c +++ b/src/afb-hreq.c @@ -32,6 +32,8 @@ #include "afb-req-itf.h" #include "afb-hreq.h" +#define SIZE_RESPONSE_BUFFER 8000 + static char empty_string[] = ""; struct hreq_data { @@ -460,7 +462,7 @@ static void req_reply(struct afb_hreq *hreq, unsigned retcode, const char *statu if (resp) json_object_object_add(root, "response", resp); - response = MHD_create_response_from_callback(MHD_SIZE_UNKNOWN, 65500, (void*)send_json_cb, root, (void*)json_object_put); + response = MHD_create_response_from_callback(MHD_SIZE_UNKNOWN, SIZE_RESPONSE_BUFFER, (void*)send_json_cb, root, (void*)json_object_put); MHD_queue_response(hreq->connection, retcode, response); MHD_destroy_response(response); }