mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
![]() 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. |
||
---|---|---|
.. | ||
acme-client | ||
deaddrop | ||
raw-proxy | ||
ssh-base | ||
CMakeLists.txt | ||
lwsws-logo.png | ||
protocol_client_loopback_test.c | ||
protocol_dumb_increment.c | ||
protocol_fulltext_demo.c | ||
protocol_lws_mirror.c | ||
protocol_lws_raw_test.c | ||
protocol_lws_server_status.c | ||
protocol_lws_sshd_demo.c | ||
protocol_lws_status.c | ||
protocol_post_demo.c | ||
server-status.css | ||
server-status.html | ||
server-status.js |