From 274dccf66c4e51458db2bca448cbc0abc637e19a Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Tue, 2 Feb 2010 21:06:13 +0100 Subject: [PATCH] Reduce STREAM_CHUNK_SIZE to a more manageable 64k 512k might be a bit too much, as it can take time to read 512k from the filesystem (and we're using a blocking read) or from the decoder. Going down to 64k will make this more manageable and improve the response time when streaming to multiple clients at the same time. --- src/httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpd.c b/src/httpd.c index 997e3a8e..62855f36 100644 --- a/src/httpd.c +++ b/src/httpd.c @@ -69,7 +69,7 @@ */ -#define STREAM_CHUNK_SIZE (512 * 1024) +#define STREAM_CHUNK_SIZE (64 * 1024) #define WEBFACE_ROOT DATADIR "/webface/" struct content_type_map {