libwebsockets/lib
Andy Green 5449511d3e remove fixed rx buffer allow definition per protocol
A new protocol member is defined that controls the size of rx
buffer allocation per connection.  For compatibility 0 size
allocates 4096, but you should adapt your protocol definition
array in the user code to declare an appropriate value.

See the changelog for more detail.

The advantage is the rx frame buffer size is now tailored to
what is expected from the protocol, rather than being fixed
to a default of 4096.  If your protocol only sends frames of
a dozen bytes this allows you to only allocate an rx frame
buffer of the same size.

For example the per-connection allocation (excluding headers)
for the test server fell from ~4500 to < 750 bytes with this.

Signed-off-by: Andy Green <andy.green@linaro.org>
2013-02-08 13:16:07 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
base64-decode.c CMake support + fixed windows build. 2013-02-06 15:49:12 +09:00
client-handshake.c unionize header token array 2013-02-07 20:30:56 +08:00
client-parser.c remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
client.c remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
daemonize.c Fixed build on OSX. 2013-02-06 15:49:12 +09:00
extension-deflate-frame.c remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
extension-deflate-frame.h Separate compression levels for server and client, 2013-01-10 12:45:54 +08:00
extension-deflate-stream.c introduce logging api and convert all library output to use it 2013-01-10 22:16:37 +08:00
extension-deflate-stream.h remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
extension.c deprecate x google mux 2013-01-17 19:53:16 +08:00
getifaddrs.c introduce getifaddrs for toolchains without it 2013-01-12 20:39:47 +08:00
getifaddrs.h introduce getifaddrs for toolchains without it 2013-01-12 20:39:47 +08:00
handshake.c remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
libwebsockets.c remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
libwebsockets.h remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
Makefile.am Generate the API reference in text format, too. 2013-02-07 23:36:37 +08:00
minilex.c add lexical parser for headers 2013-01-18 01:55:48 +08:00
output.c remove need for filepath buffer on http file serve 2013-02-08 12:19:01 +08:00
parsers.c remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
private-libwebsockets.h remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
server-handshake.c remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
server.c remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
sha-1.c Static variable is now const. 2013-01-09 15:14:31 +08:00