telize

High performance JSON IP and GeoIP REST API (IP Geolocation)
Log | Files | Refs | README | LICENSE

commit 633b526393a6abac743fb810bf19d8ce45efe7a0
parent 3e7d1fc88af9b8b5fc87b57d2b58e8a8073dddc8
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun,  7 Oct 2018 22:10:55 +0200

Set the number of initial bytes to allocate for the buffer data to 4096

Diffstat:
Msrc/jsonip.c | 2+-
Msrc/location.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/jsonip.c b/src/jsonip.c @@ -31,7 +31,7 @@ jsonip(struct http_request *req) http_populate_get(req); struct kore_buf json; - kore_buf_init(&json, 0); + kore_buf_init(&json, 4096); addr = kore_malloc(INET6_ADDRSTRLEN); diff --git a/src/location.c b/src/location.c @@ -65,7 +65,7 @@ location(struct http_request *req) http_populate_get(req); struct kore_buf json; - kore_buf_init(&json, 0); + kore_buf_init(&json, 4096); addr = kore_malloc(INET6_ADDRSTRLEN);