1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/lib
Andy Green 8cd06ca315 test server align rxbuf with permessage deflate rx buf size
Add a test html button that will send 9KB of junk to confirm it

https://github.com/warmcat/libwebsockets/issues/480

permessage-deflate now checks the protocol rx buffer size for being
>=128, if not, permessage-deflate is disabled on that connection.

If it is >=128 but less than the zlib decompress buffer size, the
zlib decompress buffer size for that connection is reduced to the
nearest power of two of the protocol rx buf size.

To test this, dumb_increment is left violating the >= 128 rx buffer
size and permessage-deflte can be seen to be disabled on his
connections in the test html.

Signed-off-by: Andy Green <andy@warmcat.com>
2016-04-01 09:30:09 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
alloc.c Subject: [PATCH] Add custom allocator support using the realloc() interface 2014-12-05 07:25:24 +08:00
base64-decode.c b64decode correct decode of some strings 2016-03-19 07:48:24 +08:00
client-handshake.c client perform WSI_CREATE callback 2016-03-15 16:27:49 +08:00
client-parser.c clean pre 1.7 2016-01-29 23:17:43 +08:00
client.c test server align rxbuf with permessage deflate rx buf size 2016-04-01 09:30:09 +08:00
context.c libuv create 1Hz background timeout check 2016-02-29 01:09:01 +08:00
daemonize.c daemonize work under systemd 2016-02-20 08:04:32 +08:00
extension-permessage-deflate.c test server align rxbuf with permessage deflate rx buf size 2016-04-01 09:30:09 +08:00
extension-permessage-deflate.h extension permessage deflate 2016-01-11 11:34:01 +08:00
extension.c libuv integration 2016-02-14 09:31:13 +08:00
getifaddrs.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
getifaddrs.h Use LWS_HAVE_ instead of just HAVE_ 2015-10-12 09:53:17 +08:00
handshake.c timeout settable from info 2016-02-15 20:39:07 +08:00
header.c lws_return_http_status send content length 2016-02-20 08:04:56 +08:00
hpack.c http header malloc pool implement pool 2015-12-25 14:34:20 +08:00
http2.c extension permessage deflate 2016-01-11 11:34:01 +08:00
huftable.h http2 hpack basic decode ok including huff 2014-10-12 08:38:16 +08:00
lextable-strings.h lextable add x-real-ip 2016-01-28 09:40:53 +08:00
lextable.h lextable add x-real-ip 2016-01-28 09:40:53 +08:00
libev.c libev set foreign loop properly 2016-03-09 07:47:34 +08:00
libuv.c libuv: handle signals only if requested 2016-03-23 08:04:39 +08:00
libwebsockets.c wince minor adaptations 2016-03-01 07:33:56 +08:00
libwebsockets.h libuv: handle signals only if requested 2016-03-23 08:04:39 +08:00
lws-plat-mbed3.c mbed align with pt changes 2016-01-20 17:35:18 +08:00
lws-plat-mbed3.cpp mbed align with pt changes 2016-01-20 17:35:18 +08:00
lws-plat-unix.c force service properly when unconsumed rxbuf in ah 2016-02-26 10:50:04 +08:00
lws-plat-win.c wince minor adaptations 2016-03-01 07:33:56 +08:00
minihuf.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
minilex.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
output.c timeout settable from info 2016-02-15 20:39:07 +08:00
parsers.c Optimize payload exhaustion 2016-03-17 09:42:10 +08:00
pollfd.c defeat POLLOUT if socket in shutdown wait 2016-02-24 21:32:31 +08:00
private-libwebsockets.h Fix build with musl libc 2016-03-30 06:24:24 +08:00
server-handshake.c test server align rxbuf with permessage deflate rx buf size 2016-04-01 09:30:09 +08:00
server.c Optimize payload exhaustion 2016-03-17 09:42:10 +08:00
service.c clang fixes 1 2016-03-15 21:24:04 +08:00
sha-1.c Fix build with musl libc 2016-03-30 06:24:24 +08:00
ssl-http2.c http2 build with alpn capable ssl no debug 2016-03-25 21:03:01 +08:00
ssl.c ssl ecdh adapt if missing ecdh.h include 2016-03-12 08:49:09 +08:00