1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/minimal-examples/ws-server/minimal-ws-server-pmd-corner
Andy Green 498a4e2bd7 sul: all timed objects use a single pt sul list
wsi timeout, wsi hrtimer, sequencer timeout and vh-protocol timer
all now participate on a single sorted us list.

The whole idea of polling wakes is thrown out, poll waits ignore the
timeout field and always use infinite timeouts.

Introduce a public api that can schedule its own callback from the event
loop with us resolution (usually ms is all the platform can do).

Upgrade timeouts and sequencer timeouts to also be able to use us resolution.

Introduce a prepared fakewsi in the pt, so we don't have to allocate
one on the heap when we need it.

Directly handle vh-protocol timer if LWS_MAX_SMP == 1
2019-08-09 10:12:09 +01:00
..
mount-origin minimal-example-pmd-corner: pmd corner case exerciser 2018-11-21 17:03:29 +08:00
CMakeLists.txt minimal-example-pmd-corner: pmd corner case exerciser 2018-11-21 17:03:29 +08:00
minimal-ws-server-pmd-corner.c sul: all timed objects use a single pt sul list 2019-08-09 10:12:09 +01:00
protocol_lws_minimal.c cc0: align dedication to CC0 FAQ recommended format 2019-05-02 09:29:01 +01:00
README.md minimal-example-pmd-corner: pmd corner case exerciser 2018-11-21 17:03:29 +08:00

lws minimal ws server + permessage-deflate corner case tests

build

 $ cmake . && make

usage

 $ ./lws-minimal-ws-server-pmd-corner
[2018/11/21 16:47:49:0171] USER: LWS minimal ws server + permessage-deflate Corner Cases | visit http://localhost:7681
[2018/11/21 16:47:49:0172] NOTICE: Creating Vhost 'default' port 7681, 2 protocols, IPv6 off

Visit http://localhost:7681

5 ws connections are made via permessage-deflate extension.

When the ws connection is established, various amounts of data are sent resulting in ciphertext packets of a known size.