1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/test-server
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
favicon.ico refactor-into-dirs.patch 2010-11-01 09:12:17 +00:00
libwebsockets.org-logo.png add libwebsockets.org logo to share 2013-01-16 10:00:39 +08:00
Makefile.am introduce test echo 2013-01-30 12:28:44 +08:00
test-client.c remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
test-echo.c fixes for without server and without client 2013-01-31 09:57:05 +08:00
test-fraggle.c remove all support for pre v13 protocols 2013-01-21 09:53:35 +08:00
test-ping.c Fix two typos. 2013-02-07 23:23:10 +08:00
test-server.c remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
test.html renovate test html 2013-01-31 19:50:57 +08:00