1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib/core
Andy Green d291c02a23 ss: sspc: add conmon performance telemetry
This provides a way to get ahold of LWS_WITH_CONMON telemetry from Secure
Streams, it works the same with direct onward connections or via the proxy.

You can mark streamtypes with a "perf": true policy attribute... this
causes the onward connections on those streamtypes to collect information
about the connection performance, and the unsorted DNS results.

Streams with that policy attribute receive extra data in their rx callback,
with the LWSSS_FLAG_PERF_JSON flag set on it, containing JSON describing the
performance of the onward connection taken from CONMON data, in a JSON
representation.  Streams without the "perf" attribute set never receive
this extra rx.

The received JSON is based on the CONMON struct info and looks like

{"peer":"46.105.127.147","dns_us":596,"sockconn_us":31382,"tls_us":28180,"txn_resp_us:23015,"dns":["2001:41d0:2:ee93::1","46.105.127.147"]}

A new minimal example minimal-secure-streams-perf is added that collects
this data on an HTTP GET from warmcat.com, and is built with a -client
version as well if LWS_WITH_SECURE_STREAMS_PROXY_API is set, that operates
via the ss proxy and produces the same result at the client.
2021-04-05 10:55:04 +01:00
..
alloc.c lws_netdev: use lws_settings 2020-07-07 15:23:19 +01:00
buflist.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
CMakeLists.txt deprecation: remove lws_dll1 2020-06-02 08:37:10 +01:00
context.c ss: sspc: add conmon performance telemetry 2021-04-05 10:55:04 +01:00
libwebsockets.c Fault injection 2021-04-05 10:55:04 +01:00
logs.c access-log: use localtime_r instead of localtime if possible 2021-03-25 09:12:11 +00:00
lws_dll2.c dll2: explicitly confim detached dll2 has no linkage 2021-01-04 05:40:12 +00:00
private-lib-core.h Fault injection 2021-04-05 10:55:04 +01:00
vfs.c type comparisons: fixes 2021-01-05 10:56:38 +00:00