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 0ceba15d9c lws_lifecycle
This adds some new objects and helpers for keeping and logging
info on grouped allocations, a group is, eg, SS handles or client
wsis.

Allocated objects get a context-unique "tag" string intended to replace
%p / wsi pointers etc.  Pointers quickly become confusing when
allocations are freed and reused, the tag string won't repeat
until you produce 2^64 objects in a context.

In addition the tag string documents the object group, with prefixes
like "wsi-" or "vh-" and contain object-specific additional
information like the vhost name, address / port  or the role of the wsi.
At creation time the lws code can use a format string and args
to add whatever group-specific info makes sense, eg, a wsi bound
to a secure stream can also append the guid of the secure stream,
it's copied into the new object tag and so is still available
cleanly after the stream is destroyed if the wsi outlives it.
2021-01-04 05:26:50 +00:00
..
alloc.c lws_netdev: use lws_settings 2020-07-07 15:23:19 +01:00
buflist.c buflist: additional helpers 2020-11-09 07:40:40 +00:00
CMakeLists.txt deprecation: remove lws_dll1 2020-06-02 08:37:10 +01:00
context.c lws_lifecycle 2021-01-04 05:26:50 +00:00
libwebsockets.c smp: lws_mutex_refcount: add assert held helper 2020-08-31 16:51:37 +01:00
logs.c lws_lifecycle 2021-01-04 05:26:50 +00:00
lws_dll2.c client: rfc6724 dns results sorting 2020-11-28 10:58:07 +00:00
private-lib-core.h lws_lifecycle 2021-01-04 05:26:50 +00:00
vfs.c cleaning 2020-01-05 22:17:58 +00:00