mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
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 <andy.green@linaro.org>
This commit is contained in:
parent
760c3d4aa5
commit
73a820a989
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue