1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/misc
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
..
fts docs: switch to use main 2020-10-19 16:35:03 +01:00
lwsac wip: ss c++ classes 2020-12-02 10:15:50 +00:00
threadpool lws_lifecycle 2021-01-04 05:26:50 +00:00
base64-decode.c cmake: disable export visibility when building lws static 2020-09-06 11:46:25 +01:00
CMakeLists.txt wip: ss c++ classes 2020-12-02 10:15:50 +00:00
daemonize.c clean: explicitly include libwebsockets.h in internal c now we use stddint types earlier 2020-01-15 12:07:20 +00:00
dir.c eventlibs: add cwd and LD_LIBRARY_PATH to dirs 2020-12-01 15:38:20 +00:00
diskcache.c clean: explicitly include libwebsockets.h in internal c now we use stddint types earlier 2020-01-15 12:07:20 +00:00
fsmount.c fsmount: delete session dir on mount 2020-03-05 14:12:24 +00:00
getifaddrs.c clean: explicitly include libwebsockets.h in internal c now we use stddint types earlier 2020-01-15 12:07:20 +00:00
getifaddrs.h refactor: subdirs for source in lib 2017-10-16 17:28:37 +08:00
lejp.c cmake: disable export visibility when building lws static 2020-09-06 11:46:25 +01:00
lws-ring.c cmake: disable export visibility when building lws static 2020-09-06 11:46:25 +01:00
lws-struct-lejp.c struct-lejp: handle no path match 2020-07-15 16:18:00 +01:00
lws-struct-sqlite.c lws_struct: sqlite: use incoming ac ptr as well as set on exit 2020-12-27 08:42:02 +00:00
peer-limits.c lws_lifecycle 2021-01-04 05:26:50 +00:00
romfs.c linkit: support build using public sdk 2020-01-17 07:45:34 +00:00
romfs.h refactor: subdirs for source in lib 2017-10-16 17:28:37 +08:00
sha-1.c cmake: disable export visibility when building lws static 2020-09-06 11:46:25 +01:00