From 73a820a9899d3070b0e8a8ceff2591c2c77fbd64 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 18 Feb 2013 11:32:49 +0800 Subject: [PATCH] restrict http send buffer to 4096 send() is able to complete but not send everything asked... we don't deal with that yet. On an ARM9 board, leaf.jpg failed because the send() only accepted 7240 of 8192... not a failure but it implies reporting partial send to the caller. Work around by keeping the send buffer at 4096. Signed-off-by: Andy Green --- test-server/test-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-server/test-server.c b/test-server/test-server.c index c01bb627..8ab4cb15 100644 --- a/test-server/test-server.c +++ b/test-server/test-server.c @@ -124,7 +124,7 @@ static int callback_http(struct libwebsocket_context *context, char buf[256]; int n; unsigned char *p; - static unsigned char buffer[8192]; + static unsigned char buffer[4096]; struct stat stat_buf; struct per_session_data__http *pss = (struct per_session_data__http *)user; #ifdef EXTERNAL_POLL