replace LWS_MAX_SOCKET_IO_BUF with context creation info pt_serv_buf_size
authorAndy Green <andy@warmcat.com>
Thu, 19 May 2016 04:34:35 +0000 (12:34 +0800)
committerAndy Green <andy@warmcat.com>
Thu, 19 May 2016 04:34:35 +0000 (12:34 +0800)
commite7c1c757cdf5080b4d971b328ba94635e296b687
treeac7436e1cdd6637e9cdd8b6958f5c6923fc3acf4
parent9b03cb98288b7c79a79ae50a3eb21bc1c2589d9b
replace LWS_MAX_SOCKET_IO_BUF with context creation info pt_serv_buf_size

This makes it easy for user code to choose the size of the per-thread
buffer used by various things in lws, including file transfer chunking.

Previously it was 4096, if you leave info.pt_serv_buf_size as zero that
is still the default.

With some caveats, you can increase transfer efficiency by increasing it
to, eg, 128KiB, if that makes sense for your memory situation.

Signed-off-by: Andy Green <andy@warmcat.com>
13 files changed:
lib/client-parser.c
lib/client.c
lib/context.c
lib/extension-permessage-deflate.c
lib/header.c
lib/libwebsockets.h
lib/output.c
lib/parsers.c
lib/private-libwebsockets.h
lib/server-handshake.c
lib/server.c
lib/service.c
lib/ssl.c