mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00

Add selectable event lib support to minimal-http-client-multi and clean up context destroy flow so we can use lws_destroy_context() from inside the callback to indicate we want to end the event loop, without using the traditional "interrupted" flag and in a way that works no matter which event loop backend is being used.
715 B
715 B
lws minimal http client multi
build
$ cmake . && make
usage
The application goes to https://warmcat.com and receives the page data same as minimal http client.
However it does it for 8 client connections concurrently.
Commandline Options
Option | Meaning |
---|---|
-s | Stagger the connections by 100ms, the last by 1s |
-p | Use http/1.1 pipelining or h2 simultaneous streams |
--h1 | Force http/1 only |
-l | Connect to server on https://localhost:7681 instead of https://warmcat.com:443 |
-n | Read numbered files like /1.png, /2.png etc. Default is just read / |
--uv | Use libuv event loop if lws built for it |
--event | Use libevent event loop if lws built for it |
--ev | Use libev event loop if lws built for it |