Commit graph

23 commits

Author SHA1 Message Date
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
Andy Green
4038721baf test server add lws_status
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 13:44:07 +08:00
Andy Green
466defa72d test html add tabs
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 13:43:41 +08:00
Andy Green
228ecc6e56 libwebsockets.org url updates
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-02-21 10:49:04 +08:00
Andy Green
6711266a50 extension permessage deflate
Signed-off-by: Andy Green <andy.green@linaro.org>
2016-01-11 11:34:01 +08:00
Andy Green
1fb95e8084 close add api to control sent close frame contents
This adds an api lws_close_reason() which lets you control what will
be sent in the close frame when the connection is closed by returning
nonzero from the user callback.

The test server demo is extended to prove it works in both directions.

With this, we should have nice close support.

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

Signed-off-by: Andy Green <andy.green@linaro.org>
2015-12-26 17:20:34 +08:00
Andy Green
066a7a1801 close add callback to get peer close reason
https://github.com/warmcat/libwebsockets/issues/196

Signed-off-by: Andy Green <andy.green@linaro.org>
2015-12-26 15:47:06 +08:00
Andy Green
974bed41b8 test html add open close buttons
Signed-off-by: Andy Green <andy.green@linaro.org>
2015-11-15 09:24:25 +08:00
John Harrison
8d5793bc16 ie10 lws url workaround
Signed-off-by: John Harrison <john@h-agtec.com>
2013-12-10 21:20:03 +08:00
Andy Green
fbf48227b3 add by hand http send example
This adds a demonstration of how to use the http nonblocking
send action to the test server.

If you ask for /leaf.jpg from the test server, it will send
"by hand" a 2.4MB jpeg in HTTP, including the headers.  See
the test server sources to see how it is done.

Although it's a file, and a jpeg image, actually the exact
same scheme will work for any data or mime type.

Signed-off-by: Andy Green <andy.green@linaro.org>
2013-02-14 23:24:07 +08:00
Andy Green
c51823a418 renovate test html
Signed-off-by: Andy Green <andy.green@linaro.org>
2013-01-31 19:50:57 +08:00
Andy Green
fab033dd4f add logo to test file
Signed-off-by: Andy Green <andy.green@linaro.org>
2013-01-16 10:11:34 +08:00
David Galeano
b42dcc7186 Use feature check rather than browser check. 2013-01-09 15:39:50 +08:00
Andy Green
86e82ab22f update test html now mozilla uses normal ws apis
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-05-03 12:48:14 +08:00
Andy Green
188d896c81 test html uplevel detect browser and MozWebSocket
Signed-off-by: Andy Green <andy@warmcat.com>
2011-09-25 10:01:02 +01:00
Andy Green
90c7cbcc00 introduce-ssl-client-connections--flow-control.patch
Signed-off-by: Andy Green <andy@warmcat.com>
2011-01-27 06:26:52 +00:00
Andy Green
24cc0aea16 fix-script-to-synthesize-websocket-url-entirely-from-script-url.patch
Signed-off-by: Andy Green <andy@warmcat.com>
2010-11-15 19:39:30 +00:00
Andy Green
5195968224 mirror-protocol-chrome-and-firefox.patch
Signed-off-by: Andy Green <andy@warmcat.com>
2010-11-12 14:12:13 +00:00
Andy Green
fe2a0d2e88 introduce-mirror-test-protocol.patch
Signed-off-by: Andy Green <andy@warmcat.com>
2010-11-12 13:10:40 +00:00
Andy Green
ab7d933d9d test-applet-add-reset-button-and-colour-socket-status.patch
Signed-off-by: Andy Green <andy@warmcat.com>
2010-11-11 13:19:19 +00:00
Andy Green
462bbf711e require-specific-test-protocol.patch
Signed-off-by: Andy Green <andy@warmcat.com>
2010-11-11 12:52:28 +00:00
Andy Green
3faa9c716c add-wss-ssl-openssl-support.patch
Signed-off-by: Andy Green <andy@warmcat.com>
2010-11-08 17:03:03 +00:00
Andy Green
7310e9c77b refactor-into-dirs.patch
Signed-off-by: Andy Green <andy@warmcat.com>
2010-11-01 09:12:17 +00:00
Renamed from test.html (Browse further)