mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
![]() This completely removes the loop self-running stuff. Static allocations (uv_idle, timers etc) are referenced-counted in the context same as the wsi are. When lws wants to close, he first closes all his wsi, then when that is completed in the uv close callbacks, he closes all of his static uv handles. When that is also completed in the uv callbacks, he stops the loop so the lws context can destroy and exit. Any direct libuv allocations in protocol handlers must participate in the reference counting. Two new apis are provided - lws_libuv_static_refcount_add(handle, context) to mark the handle with a pointer to the context and increment the global uv object counter - lws_libuv_static_refcount_del() which should be used as the close callback for your own libuv objects declared in the protocol scope. |
||
---|---|---|
.. | ||
acme-client | ||
generic-sessions | ||
generic-table | ||
ssh-base | ||
lwsws-logo.png | ||
protocol_client_loopback_test.c | ||
protocol_dumb_increment.c | ||
protocol_esp32_lws_group.c | ||
protocol_esp32_lws_ota.c | ||
protocol_esp32_lws_reboot_to_factory.c | ||
protocol_esp32_lws_scan.c | ||
protocol_lws_meta.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.html |