txtinfo: use a bigger (2 CPU pages) initial buffer
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 26 Nov 2015 14:26:33 +0000 (15:26 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 27 Nov 2015 09:17:21 +0000 (10:17 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/txtinfo/src/olsrd_txtinfo.c

index 29d11ff..9dfd6fd 100644 (file)
@@ -811,7 +811,7 @@ static void info_write_data(void *foo __attribute__ ((unused))) {
 static void send_info(unsigned int send_what, int the_socket) {
   struct autobuf abuf;
 
-  abuf_init(&abuf, 4096);
+  abuf_init(&abuf, 2 * 4096);
 
   /* Print minimal http header */
   if (http_headers) {