1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/minimal-examples/http-client/minimal-http-client-multi
Andy Green 8d48d8f3fb ctest: mbedtls: disable spawned server valgrind
When the number of parallel mbedtls ctest runs exceeds the number of free cpus in the
builder, we get too slow when under valgrind to pass the client tests before they
timeout.
2021-02-03 08:49:59 +00:00
..
CMakeLists.txt ctest: mbedtls: disable spawned server valgrind 2021-02-03 08:49:59 +00:00
minimal-http-client-multi.c plugins: add LWS_BUILD_HASH to header and require match 2021-01-28 05:52:41 +00:00
README.md minimal-http-client-multi: add POST 2020-02-21 17:32:41 +00:00
warmcat.com.cer LE-root-cert-update 2021-01-13 04:32:13 +00:00

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
--post POST to the server rather than GET
-c Create n connections (n can be 1 .. 8)
--path Force the URL path (should start with /)